Welcome to WebmasterWorld Guest from 54.205.170.21

Forum Moderators: not2easy

Message Too Old, No Replies

Floating box question

Just starting out

   
5:11 pm on Feb 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm trying to create a CSS forum, with each post including a box on the left for the profile and a box on the right for the message content. Reading some of the posts here, it seems to be the consensus that avoiding tables is a good thing.

I've managed to float the profile box (just <DIV> text with a background) on the left with text in a box (not floated) on the right, but the box on the right actually fills 100% of the width and runs underneath the floated left box. Is there any way of just having a text box floated on the left and the other text continuing after it rather than the box sitting underneath it? I'd like to have a narrow line of background colour between the two boxes.

Or alternatively, are tables the best way to go?

I've been doing CSS for about two days, so I'm still very much a beginner at this. Any assistance greatly appreciated... :)

5:24 pm on Feb 10, 2003 (gmt 0)

WebmasterWorld Senior Member nick_w is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Or alternatively, are tables the best way to go

As far as I'm concerned forums like this one here are tablular data, or close enough to it not to matter.

I'd use a table.

You could absolutely position the left box and then a use a left-margin to the right box to cover the space taken on the left...

Nick

[edited by: Nick_W at 5:28 pm (utc) on Feb. 10, 2003]

5:26 pm on Feb 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It may help if you post a simplified code snippit.

If you float the div to the left, everything that follows should go to the right until it gets to the bottom of the float left div. Like text-wrap.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month