|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css: Why would border display around the margin
In all my experience with css, I've never had a border be displayed around the margin. The margin is always outside the border while the padding is inside the border.
What could possibly make it so that the margin is being displayed within the border? This problem occurs in all browsers and can be seen around the first thumbnail of paintings near the bottom of the page: www.philitopia.net/alicekapka/index.html |
|
#2
|
||||
|
||||
|
I believe that's being caused by the whitespace in your HTML source after the <img> and before the </a>. Wrap your image directly in the link.
Code:
<a href="foo.php"><img src="foo.jpg" /></a> <!-- not --> <a href="foo.php"> <img src="foo.jpg" /> </a>
__________________
# Jeremy Explain your problem instead of asking how to do what you decided was the solution. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css: Why would border display around the margin |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|