Moshambi
11-24-2007, 11:12 AM
so i like the idea of using <div> elements with the id attribute in them to help design a good look to the layout. this is going to be hard to explain without a code example so look at these first:
CSS:
#menu
{
margin-top: xx;
margin-left: xx;
}
#content
{
margin-top: xx;
margin-left: xx;
}
HTML:
<div id="menu">
//some sort of menu items here (i.e. navigation)
</div>
<div id="content">
//content of the site in this area
</div>
now what my question is, where i provide xx for the margins is it bad practice to place a negative number for this value?
i just want to check before i start doing it, because i find it to come in handy, but i am still a noob so any responses will be cool. thanks
CSS:
#menu
{
margin-top: xx;
margin-left: xx;
}
#content
{
margin-top: xx;
margin-left: xx;
}
HTML:
<div id="menu">
//some sort of menu items here (i.e. navigation)
</div>
<div id="content">
//content of the site in this area
</div>
now what my question is, where i provide xx for the margins is it bad practice to place a negative number for this value?
i just want to check before i start doing it, because i find it to come in handy, but i am still a noob so any responses will be cool. thanks