css - Padding/Margin for Images within a DIV -
ok. made updates website.
http://annberingerart.com/index.php
upon making minor changes seems margin , padding images on index page has changed. there equal padding both vertically , horizontally between images consistent margin.
in addition, viewing website on friend's mac safari 5 installed , entire wrapper seemed have shrunk in size because not contain children had before made changes.
you can take @ css in firebug lengthy , excessive post 400+ lines of css on here.
any , criticism welcome, want advice on how fix issue.
your horizontal margin caused spaces / new-lines because images inline elements (sort of inline-block really...).
if float images, have more control on exact margins instead of depending on width of space / new-line.
to solve problem, could:
- float images left;
- give wrapper left-padding, no right-padding ,
overflow:hidden
; - give images right padding (the same left-padding of wrapper).
Comments
Post a Comment