943,672 Members | Top Members by Rank

Ad:
Mar 13th, 2009
0

Width Auto Resize to fit Screen

Expand Post »
hi guys, is there a way to auto resize the width to fit the screen? is it possible?
Similar Threads
Reputation Points: 19
Solved Threads: 115
Nearly a Posting Virtuoso
cguan_77 is offline Offline
1,317 posts
since Apr 2007
Mar 13th, 2009
0

Re: Width Auto Resize to fit Screen

you can use:
HTML and CSS Syntax (Toggle Plain Text)
  1. width=100%
Reputation Points: 10
Solved Threads: 2
Newbie Poster
ravi_9793 is offline Offline
13 posts
since Mar 2009
Mar 13th, 2009
0

Re: Width Auto Resize to fit Screen

Click to Expand / Collapse  Quote originally posted by ravi_9793 ...
you can use:
HTML and CSS Syntax (Toggle Plain Text)
  1. width=100%
To fill the screen you must also maximize the window.
Who would ever want to do that?
Reputation Points: 16
Solved Threads: 9
Junior Poster
ingeva is offline Offline
106 posts
since Jul 2008
Mar 19th, 2009
0

Re: Width Auto Resize to fit Screen

The width attribute is deprecated. Use a style:
HTML and CSS Syntax (Toggle Plain Text)
  1. .wfl {width: 100%}

Then, in the tag you want to be wide, put the following:

HTML and CSS Syntax (Toggle Plain Text)
  1. <tag class="wfl">

The tag will assume the full width of its container.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007
Mar 21st, 2009
0

Re: Width Auto Resize to fit Screen

thanks MidiMagic i'll try it out
Reputation Points: 19
Solved Threads: 115
Nearly a Posting Virtuoso
cguan_77 is offline Offline
1,317 posts
since Apr 2007
Mar 23rd, 2009
0

Re: Width Auto Resize to fit Screen

i would suggest that you float your tables on 100%. the main advantage on using percentages is that you would style the sheet according to most people's screens. visit sitepoint.com for more info on styling on CSS. they have a huge selection on books for you to sort your problem.
Reputation Points: 13
Solved Threads: 18
Junior Poster
MJ Pieterse is offline Offline
144 posts
since Mar 2009
Mar 23rd, 2009
0

Re: Width Auto Resize to fit Screen

Indeed to have a fluid layout you will have to use % to determine the width instead of pixels.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
Trapped is offline Offline
4 posts
since Mar 2009
Mar 24th, 2009
0

Re: Width Auto Resize to fit Screen

Actually <div> element is 100% stretched by default, unless contained in another block element with fixed widht, or unless floated. So, if you are using div's and do not use neither float, nor width properties, they will be still 100% wide.
Now, what is your goal so we could help more?
Reputation Points: 21
Solved Threads: 26
Posting Whiz in Training
Rhyan is offline Offline
240 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Browser issuses
Next Thread in HTML and CSS Forum Timeline: stop html background image cutting off at lower resolutions





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC