Hi everyone,
All i want to do is a link, an image link, inside a paragraph made of blue background. I want my link to be at the middle of the background but can’t do it !
I defined the paragraph + a link inside as:
I wanted the image to have 2pixels line on its’ edges so i defined it as:
p#outer a {padding:2px;}
</style>
Result is : only the right edge and bottom edge has that desired blue line !
Can anyone consult me please how to make a blue, 2px line, surounds the whole imag ? not just the right/bottom part ?
Thanks a lot.l
Hi, This Code shown below should do what you are wanting.
I could have set a BG color and 2px padding on the p#outer to create the border but since it is just a border you are after then use the border property for less code.
The floats on the “a” and “a img” generate a block box around them to allow for dimensions to be set and it kills the vertical-alignment issues on them at the same time.