Horizontal <divs>

Yianni's picture

He has: 17 posts

Joined: Jul 2004

I've been stuck on this for a couple of days. Is there a way to get to line up horizontally besides the Float command? The only problem I have with the float command is if I use, for example, Float:Left;, the elements are lined up horizontally, but there is no way to center them. Can anyone help?

The screenshot is here just as a visual aid. As you can see, the layout is vertical, with only a single column. The main content box is on the top of the image, and I want the 2 boxes centered right underneath it.

Thanks Smiling

AttachmentSize
ex.png2 KB

They have: 11 posts

Joined: Jul 2004

which basically acts like the span tag.
or
works better.

In other words, change your s to s and enclose them in a

Yianni's picture

He has: 17 posts

Joined: Jul 2004

I could have sworn I tried display:inline; at least once over the past couple days. Nonetheless it worked Sticking out tongue . TWF comes through again, thanks! Smiling

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.