Saturday, September 29, 2012

Styling Divs.


What you can put to a div are these

style="margin:0 -15px; background: url(static/bg-header-subpage.gif); padding-bottom: 10px;"


  • margins on the left and right; negative means that your contents will be hidden past the left and right edge of the page



  • padding bottom: means that an img tag inside this div will not fill up to the inner bottom boundary of this div



  1. you give a background to this div, rather than an img tag;
  2. this is like a background for the whole html page in olden days
  3. your imgs, and text, will be put on top of this bkground.










No comments:

Post a Comment