Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-28-2011, 12:38 AM   PM User | #1
cgeller100
New Coder

 
Join Date: Jan 2010
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
cgeller100 is an unknown quantity at this point
Full Screen Width with CSS

I am using divs to layout my page, one 20% and one 80% across. However, the 80% doesn't cover the whole screen and there are about 20pixels of whitespace on the right. How do I get the divs to cover the whole screen?

Thank You

[CODE]
#desc {width: 20%;float: left; margin-top: 0px; position: absolute; top: 0px; left: 0px; }
#headline {width: 80%; float: right; margin-left: 0px; margin-top: 0px;}
[CODE]
cgeller100 is offline   Reply With Quote
Old 05-28-2011, 12:41 AM   PM User | #2
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
in CSS

* {margin:0px; padding:0px;}

to remove bowser settings
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote
Old 06-04-2011, 12:19 AM   PM User | #3
cgeller100
New Coder

 
Join Date: Jan 2010
Posts: 14
Thanks: 3
Thanked 0 Times in 0 Posts
cgeller100 is an unknown quantity at this point
Partly Solved

This gets rid of about half the whitespace on the right but there are still about 10 more pixels. Any other ideas? Thank You
cgeller100 is offline   Reply With Quote
Old 06-04-2011, 01:46 AM   PM User | #4
Ahlahn
New Coder

 
Join Date: Sep 2010
Location: The Twilight Zone
Posts: 86
Thanks: 17
Thanked 2 Times in 2 Posts
Ahlahn is an unknown quantity at this point
#headline {width: 80%; float: right; margin-left: 0px; margin-top: 0px; padding:0px;}
Ahlahn is offline   Reply With Quote
Reply

Bookmarks

Tags
div, fullscreen, width

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:32 AM.


Advertisement
Log in to turn off these ads.