Jump to content

Display question


qugh

Recommended Posts

I am new to tableless CSS design and it's currently kicking my butt. Right now, I've wasted forever trying to figure this one thing out...Regarding the DISPLAY property... Can you INLINE a bunch of BLOCKS? I want to INLINE divs, but inside those divs, I have more divs that I am needing to BLOCK.The idea is div#BigContainer{ display: block; }div#MedContainer{ display: inline; }div#InnerContainer{ display: block; }But to my knowledge, I don't think it works like that.

Link to comment
Share on other sites

yes. Just make sure than anytime you set display, you also set float. As for what you put inside, you can put anything and it shouldnt break the inline containers...here's what it should look kinda like:

header<div class="leftcolumn" style="float:left; display: inline"></div><div class="maincolumn" style="float:left; display: inline"></div><div style="clear:both"><!-- this will allow anything else to be put under the table instead of inline with it --></div>footer

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...