 |
 |
Simple CSS help needed
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Status:
Offline
|
|
Hello! I have been contemplated with this design element, I believe using CSS. It involves a thin red strip on top of the page as see here:
http://www.scarlet.be/
Now I understand that this is a CSS property. How do you go about doing this?
Any help would be appreciated.
Thank you!
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Mar 2004
Location: Copenhagen
Status:
Offline
|
|
I would guess, without checking, that they wrap the entire content of the page in a div named “content” or something like that, and declare this div in the CSS file something like this:
Code:
#content {
width: 100%;
height: 100%;
border-top: 5px solid red;
}
That would make the “content” div 100% of both the height and the width of the page, and give it a top border that’s 4 pixels wide and solid red. You can of course apply this to any block container you wish.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jan 2001
Location: Salt Lake City, UT USA
Status:
Offline
|
|
Originally Posted by Oisín
You can of course apply this to any block container you wish.
In fact they did. It was stuck right on the Body tag.
Code:
body
{
color: #000;
background-color: #FFF;
border-top: 4px solid #f00;
background-repeat: repeat-x;
background-position: 0 0;
margin: 0;
|
|
2008 iMac 3.06 Ghz, 2GB Memory, GeForce 8800, 500GB HD, SuperDrive
8gb iPhone on Tmobile
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Mar 2004
Location: Copenhagen
Status:
Offline
|
|
Originally Posted by SirCastor
In fact they did. It was stuck right on the Body tag.
Ah, well there you go, then. That’s what I get for being a lazy-ass who can’t be bothered to check the source code and/or CSS file 
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Status:
Offline
|
|
thanks guys! being new to CSS, this really helps. appreciate your help!
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2004
Location: Tokyo
Status:
Offline
|
|
golive and probably other programs have CSS editors too - so you don't need really code the basic stuff like colors.
|
|
ππ>_<ππ
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |