HighDots Forums  

Re: yet another <div> question

alt.html alt.html


Discuss Re: yet another <div> question in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Wilcox
 
Posts: n/a

Default Re: yet another <div> question - 10-03-2003 , 04:26 PM






Richard <anom@anom> wrote:
Quote:
How does one convert the above to css?
I want the divisions to change in accordance with screen width, not
use fixed positions.
In order to have the proper appearance in accordance with screen size.
In body:

<div class="container">
<div class="column">Hello</div>
<div class="column">Hello</div>
<div class="column">Hello</div>
</div>

In head:
<style type="text/css">
..column
{
width: 33%;
float: left;
text-align: center;
}
</style>


How's this look html gurus?
--
Michael Wilcox
mjwilco at yahoo dot com




Reply With Quote
  #2  
Old   
Richard
 
Posts: n/a

Default Re: yet another <div> question - 10-03-2003 , 04:36 PM






Michael wrote:

Quote:
Richard <anom@anom> wrote:
How does one convert the above to css?
I want the divisions to change in accordance with screen width, not
use fixed positions.
In order to have the proper appearance in accordance with screen size.

In body:

div class="container"
div class="column">Hello</div
div class="column">Hello</div
div class="column">Hello</div

Quote:
In head:
style type="text/css"
.column
{
width: 33%;
float: left;
text-align: center;
}
/style

Quote:
How's this look html gurus?
--
Michael Wilcox
mjwilco at yahoo dot com

Works for me. Thanks.
Figured it was something stupidly simple I was missing.




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.