HighDots Forums  

Re: CSS columns

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: CSS columns in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephen Poley
 
Posts: n/a

Default Re: CSS columns - 08-19-2003 , 06:43 AM






On Tue, 19 Aug 2003 03:15:13 GMT, "Dan Phiffer" <danAT (AT) phifferDOT (DOT) com>
wrote:

Quote:
I'm having trouble getting the following to display correctly in Mozilla
Phoenix 0.6 for Windows and Safari 1.0 for Mac. Recent versions of Internet
Explorer seem to do fine with the design on both platforms, but no dice on
the browsers I thought had good CSS support. I can only assume I'm doing
something wrong here:

http://osp.claremont.edu/~dan/temp/css-cols/test.html
OK, it took me a while to work this one out as well. IE is getting it
wrong as usual.

I suggest you first do the following:
- reduce the amount of text in each div
- add 'width: 150px' to your div b
- and add different colour (sorry, color) borders to your divs.
Then you can probably understand what is happening.

To fix it, either add a left margin to div b which is wide enough to
accommodate div a, or add float: left to div b.

And, as already pointed out, better to use % or em for the widths,
though that's not the cause of this problem.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #2  
Old   
Dan Phiffer
 
Posts: n/a

Default Re: CSS columns - 08-19-2003 , 11:36 AM






Excellent, that did it.

The problem, for those who might have been curious, was that in order to put
two columns next to each other _both_ divs have to be floated left - for
some reason I thought just the left one had to be.

Thanks for the help!
-Dan


"Stephen Poley" <sbpoley (AT) xs4all (DOT) nl> wrote

Quote:
On Tue, 19 Aug 2003 03:15:13 GMT, "Dan Phiffer" <danAT (AT) phifferDOT (DOT) com
wrote:

I'm having trouble getting the following to display correctly in Mozilla
Phoenix 0.6 for Windows and Safari 1.0 for Mac. Recent versions of
Internet
Explorer seem to do fine with the design on both platforms, but no dice
on
the browsers I thought had good CSS support. I can only assume I'm doing
something wrong here:

http://osp.claremont.edu/~dan/temp/css-cols/test.html

OK, it took me a while to work this one out as well. IE is getting it
wrong as usual.

I suggest you first do the following:
- reduce the amount of text in each div
- add 'width: 150px' to your div b
- and add different colour (sorry, color) borders to your divs.
Then you can probably understand what is happening.

To fix it, either add a left margin to div b which is wide enough to
accommodate div a, or add float: left to div b.

And, as already pointed out, better to use % or em for the widths,
though that's not the cause of this problem.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/



Reply With Quote
  #3  
Old   
Stan Brown
 
Posts: n/a

Default Re: CSS columns - 08-19-2003 , 07:16 PM



In article <4ms0b.62$lw4.54 (AT) newsread3 (DOT) news.pas.earthlink.net> in
comp.infosystems.www.authoring.stylesheets, Dan Phiffer
<danAT (AT) phifferDOT (DOT) com> wrote:
Quote:
The problem, for those who might have been curious, was that in order to put
two columns next to each other _both_ divs have to be floated left
That's not true, and I don't think it's what Stephen said. It
may be the best way to accomplish the task in some instances, but it
is emphatically not the only way. In some instances it's not even
the best way.

Please don't post upside down; please do trim your quotes; and if
you send e-mail copies of your follow-ups (which is usually not
necessary), please identify them as such and please use a valid
return address.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/


Reply With Quote
  #4  
Old   
Stan Brown
 
Posts: n/a

Default Re: CSS columns - 08-20-2003 , 08:07 AM



In article <4ms0b.62$lw4.54 (AT) newsread3 (DOT) news.pas.earthlink.net> in
comp.infosystems.www.authoring.stylesheets, Dan Phiffer
<danAT (AT) phifferDOT (DOT) com> wrote:
Quote:
Excellent, that did it.

The problem, for those who might have been curious, was that in order to put
two columns next to each other _both_ divs have to be floated left - for
some reason I thought just the left one had to be.

Thanks for the help!
-Dan
Dan, PLEASE do not send e-mail with a bogus return address. I don't
know how to make it plainer. You have done this twice now, that I
know of.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
validator: http://jigsaw.w3.org/css-validator/


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 - 2008, Jelsoft Enterprises Ltd.