Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Simple CSS help needed

Simple CSS help needed
Thread Tools
Forum Regular
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jan 16, 2006, 08:14 AM
 
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
Reply With Quote
Jan 16, 2006, 10:21 AM
 
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
Reply With Quote
Jan 16, 2006, 10:26 AM
 
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
Reply With Quote
Jan 16, 2006, 12:27 PM
 
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
Reply With Quote
Jan 16, 2006, 08:20 PM
 
thanks guys! being new to CSS, this really helps. appreciate your help!
     
Dedicated MacNNer
Join Date: Dec 2004
Location: Tokyo
Status: Offline
Reply With Quote
Jan 20, 2006, 12:22 AM
 
golive and probably other programs have CSS editors too - so you don't need really code the basic stuff like colors.
ππ>_<ππ
     
   
Thread Tools
Forum Links
Forum 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 On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:48 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2