Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Help, I'm very bad with CSS
Old 01-27-2010, 02:05 PM Help, I'm very bad with CSS
Marzo's Avatar
Novice Talker

Posts: 10
Name: Marzo
Location: Canada
Trades: 0
Hiya guys my first post. I have a box where there is html inside it to link to my site but the box has no background colour it's insides are transparent.

Here is my code:

Code:
<head>
<style type="text/css">
<!--
.textborder {
border: 1px solid #FFFFFF;
}
-->
</style>
</head>
<body>
<p class="textborder">&lt;a href="http://sasprites.co.nr/index.html" target="_blank"img src="http://sasprites.co.nr/Link To Us Logo.png" border="0" alt="SaSprites"/a&gt;</p>
</body>
</html>
If you look at my site:

http://sasprites.co.nr/

(please don't comment on how bad it looks)

on the right of the page it shows the box with the html inside it...I want the inside colour to be white.

Any help?

~Marzo

EDIT: OH boy I need help changing the text colour as well :S
__________________
-Html Noobie

Last edited by Marzo; 01-27-2010 at 02:06 PM..
Marzo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-27-2010, 02:18 PM Re: Help, I'm very bad with CSS
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If you don't set background-color it will be transparent.


text colour
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-27-2010, 02:32 PM Re: Help, I'm very bad with CSS
Marzo's Avatar
Novice Talker

Posts: 10
Name: Marzo
Location: Canada
Trades: 0
It's still not working...here is my updated code:

<head>
<style type="text/css">
<!--
.textborder {
border: 1px solid #003366;
background: #FFFFFF;
body {color: #000000;}
}
-->
</style>
</head>
<body>
<p class="textborder">&lt;a href="http://sasprites.co.nr/index.html" target="_blank">&lt;img src="http://sasprites.co.nr/Link To Us Logo.png" border="0" alt="SaSprites"/a&gt;</p>
</body>
</html>

The background of the box changed to white but the text stays white
__________________
-Html Noobie
Marzo is offline
Reply With Quote
View Public Profile
 
Old 01-27-2010, 02:37 PM Re: Help, I'm very bad with CSS
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
get rid of the html comments in the style sheet AND format the CSS correctly.


HTML Code:
<style type="text/css">
.textborder {
border: 1px solid #003366;
background: #FFFFFF;
}
body {
color: #000000;
}
</style>
I suggest you spend some time reading up on CSS at http://www.w3schools.com/css/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Help, I'm very bad with CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67773 seconds with 12 queries