Jump to content

HTML/CSS

Guest

I have a question that i personally need to answer, only i'm not sure on how to answer it... The question is, how does the CSS Box Model apply to each block-elements and inline-elements?

 

Any help is appreciated. 

 

Link to comment
Share on other sites

Link to post
Share on other sites

@LoneRangerS, I don't know the answer personally but this might help: http://www.w3schools.com/css/css_boxmodel.asp

Current rig: CPU: AMD FX-8120  Cooling: Corsair H100i  Mobo: ASRock 970 Extreme 3  RAM: 8GB 1333Mhz  GPU: MSI GTX 660Ti Power Edition  Case: Fractal Design Define R4  Storage: 2TB Seagate HDD + 128GB Crucial SSD  PSU: be quiet! 730W bronze

 

Link to comment
Share on other sites

Link to post
Share on other sites

Here are a few points, maybe it helps to point out the difference:

  • Block elements can contain inline elements and other block elements
  • Inline elements can only contain data or other inline elements
  • Block elements build larger structures than inline elments
  • Block elements start in a new line, inline elements do not

 

*Source in German: http://www.intensivstation.ch/css/box-model/

Link to comment
Share on other sites

Link to post
Share on other sites

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

×