Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-15-2012, 08:17 PM   PM User | #1
~neo
New to the CF scene

 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
~neo is an unknown quantity at this point
Vertical align divs html

So I'm new to this. Very very new. And I don't how to explain this so I drew pictures.

The squares are the divs with text in it.

What it looks like:



What I want:


Basically I did this with float:left, margin:0, float:right;margin:auto, and then breaks in between. But it doesn't look like I want. This is for a userpage on a website, not my website. And the website doesn't seem to support anything but the most basic html. I've tried using I guess, fancier ways to do it and the website just didn't recognize the code. Or I did it wrong, which is entirely possible.
~neo is offline   Reply With Quote
Old 09-15-2012, 08:26 PM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
You would need to set up the page with a left and right side, unless you had some better experience with floating.

Code:
<div id="sidebar">
    <!-- Left Side -->
</div>
<div id="main-content">
    <!-- Right Side -->
</div>
Do you have to have it by each row? I think two columns (code above) is a much better approach?

Last edited by Sammy12; 09-15-2012 at 08:29 PM..
Sammy12 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:33 PM.


Advertisement
Log in to turn off these ads.