conatiner strecthing all the way to the top of the page

This is a discussion on "conatiner strecthing all the way to the top of the page" within the Web Page Design section. This forum, and the thread "conatiner strecthing all the way to the top of the page are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 7th, 2006, 16:42
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
conatiner strecthing all the way to the top of the page

Im sure this is quite a simple question but i would like to know how i can make a div strecth al the way to the top of the page so if i put a background image on the body there would be nothing above or below the main content div.

Thanks.
Reply With Quote

  #2 (permalink)  
Old Jun 7th, 2006, 19:32
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Re: conatiner strecthing all the way to the top of the page

Just tell your body to remove it's default padding/margin, and it'll be a good time.

body {padding:0; margin:0;}
Reply With Quote
  #3 (permalink)  
Old Jun 7th, 2006, 19:36
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Re: conatiner strecthing all the way to the top of the page

Thanks
Reply With Quote
  #4 (permalink)  
Old Jun 7th, 2006, 19:42
Reputable Member
Join Date: Dec 2005
Location: Bristol
Posts: 268
Thanks: 0
Thanked 0 Times in 0 Posts
Re: conatiner strecthing all the way to the top of the page

Ive got another question: on my site: http://crewdesign.co.uk, now ive added that border, i want to make a shadow effect around the main body, how can this be achieved?
Reply With Quote
  #5 (permalink)  
Old Jun 9th, 2006, 14:18
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: conatiner strecthing all the way to the top of the page

You will have to use a repeated image depending on the effect you are looking for. Do you have a screenshot/example of what you are trying to create.
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
Reply With Quote
  #6 (permalink)  
Old Jun 10th, 2006, 11:08
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: conatiner strecthing all the way to the top of the page

In Firefox you theoretically can do a 3px border in three different colors. I say theoretically because I've not tried it, I don't mean it doesn't work.

If you don't get bugs, you could (also theoretically) do it to a degree in css with nested div's and border colors. Really, if you want to go whole-hog, you could do as much gradation as you wanted. The code would be big but you wouldn't have to load a graphic, it just depends on which one loads faster.
Reply With Quote
Reply

Tags
conatiner, strecthing, top, page

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to prevent access to page B except via page A? Donny Bahama PHP Forum 1 Apr 3rd, 2008 02:15
Green bar of colour at bottom of page gets bigger the more page is extended pixelgirl Web Page Design 1 Apr 1st, 2008 01:27
internal navigation, Linking from one page to a specific div in another page. Oak Web Page Design 5 Feb 8th, 2008 22:54
Linking an outside page back to previous framed page MJustison Starting Out 1 Oct 18th, 2007 17:49
A gap appears beween the Page Title and the Body Content of the page. sovereign6 Web Page Design 6 Dec 18th, 2006 19:14


All times are GMT. The time now is 01:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43