Reply
Make a website 100% width using DIVs
Old 05-21-2008, 03:28 PM Make a website 100% width using DIVs
Super Talker

Posts: 129
Hi guys/gals,

can someone give me a tip to make a web page 100% width using divs. I understand this is possible with tables but i feel restricted by tables so would like to do something with divs.

i want to use all the space on a page rather than be restricted to 760px width.

can someone help, it would mean a lot.

i dont know if it matters but i dont have access to PHP or any other database scripts. (simple host).
yourmediaking is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-21-2008, 04:16 PM Re: Make a website 100% width using DIVs
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
You can set widths with CSS and tell it width: 100%.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 04:24 PM Re: Make a website 100% width using DIVs
Average Talker

Posts: 21
Name: Mitch
In your stylesheet, set the width of your container div to 100%. Then use percentages for your inner content div's as well.

Best way to do this...

Don't re-invent the wheel, use www.csscreator.com to create your overall layout and then cut it up to be exaclty what your wanting.
Mviner04 is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 04:52 PM Re: Make a website 100% width using DIVs
Gilligan's Avatar
Dead Like Me

Posts: 1,618
Name: Stefan
Location: London, UK
Also remember to set no margin or padding on your body to ensure its 100% and no less.

Code:
body {
  margin: 0;
  padding: 0;
}
__________________
Offering Website Design Worldwide, please visit my website
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 05-21-2008, 07:04 PM Re: Make a website 100% width using DIVs
Super Talker

Posts: 129
thank you so much, i appreciate it.
yourmediaking is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Make a website 100% width using DIVs
 

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


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

 


Page generated in 0.12155 seconds with 12 queries