Jump to content

Body Issues


larson88

Recommended Posts

Ok why if I put a border on the body tag... it only wraps around the text i have on the page... not around the entire view space... but if u put a onClick on it.. clicking outside of the borders still tiggers it... and why does editing the body's background edit the entire space if the body border is like the top 15px.... wtf? is the body tag special? and is this normal behavior?

Link to comment
Share on other sites

i know about the box model lol, when i added a border style to the body tab... it extended 100% width and enough height to fit the text... so why does the background color of the body cover the whole page... and why does clicking anywhere trigger the body onclick, even if i click outside the border line...

Link to comment
Share on other sites

Right away, if you actually knew the box model, you would know that the margin sits outside the border.  Did you examine any of your assumptions?  For example... what is the "body?" Is it a box?  What is it's model?  If you don't specify properties specifically, what are the default parameters for things like the margin?  Is the body contained by anything?  What about the DOM? 

 

How about this?  http://dbaron.org/css/test/rootbox

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.