Width Auto Resize to fit Screen

Reply

Join Date: Apr 2007
Posts: 1,120
Reputation: cguan_77 has a little shameless behaviour in the past 
Solved Threads: 93
cguan_77's Avatar
cguan_77 cguan_77 is offline Offline
Veteran Poster

Width Auto Resize to fit Screen

 
0
  #1
Mar 13th, 2009
hi guys, is there a way to auto resize the width to fit the screen? is it possible?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 13
Reputation: ravi_9793 is an unknown quantity at this point 
Solved Threads: 2
ravi_9793 ravi_9793 is offline Offline
Newbie Poster

Re: Width Auto Resize to fit Screen

 
0
  #2
Mar 13th, 2009
you can use:
HTML and CSS Syntax (Toggle Plain Text)
  1. width=100%
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 101
Reputation: ingeva is an unknown quantity at this point 
Solved Threads: 9
ingeva ingeva is offline Offline
Junior Poster

Re: Width Auto Resize to fit Screen

 
0
  #3
Mar 13th, 2009
Originally Posted by ravi_9793 View Post
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?
Yes, I'm running Ubuntu. Of course.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Width Auto Resize to fit Screen

 
0
  #4
Mar 19th, 2009
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.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 1,120
Reputation: cguan_77 has a little shameless behaviour in the past 
Solved Threads: 93
cguan_77's Avatar
cguan_77 cguan_77 is offline Offline
Veteran Poster

Re: Width Auto Resize to fit Screen

 
0
  #5
Mar 21st, 2009
thanks MidiMagic i'll try it out
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 77
Reputation: mj080 is an unknown quantity at this point 
Solved Threads: 5
mj080's Avatar
mj080 mj080 is offline Offline
Junior Poster in Training

Re: Width Auto Resize to fit Screen

 
0
  #6
Mar 23rd, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 4
Reputation: Trapped is an unknown quantity at this point 
Solved Threads: 2
Trapped Trapped is offline Offline
Newbie Poster

Re: Width Auto Resize to fit Screen

 
0
  #7
Mar 23rd, 2009
Indeed to have a fluid layout you will have to use % to determine the width instead of pixels.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 232
Reputation: Rhyan is an unknown quantity at this point 
Solved Threads: 24
Rhyan's Avatar
Rhyan Rhyan is offline Offline
Posting Whiz in Training

Re: Width Auto Resize to fit Screen

 
0
  #8
Mar 24th, 2009
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?
" Of all the things I've lost,
I miss my mind the most...."
Mark Twain
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC