Jump to content

Borders on images with links?


aksha81
 Share

Recommended Posts

I m trying to make a galley where i have some images on a line and when you click on then you should get to an other page with the big image...anyway here it is:.cadrp { margin: 0px; background-color: black; width: 800px; height: 100px; padding-top: 5px;}a { color:rgb(189,224,105); font-family: arial; font-size:12px; margin: 0px; padding: 0px 0px 0px 20px; text-decoration: none; border: none; } a:hover, a:active { color: rgb(119,192,10); margin: 0px; }And in the body:<div class="cadrp"><span><a href="1.html"> <img src="images/1.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="2.html"> <img src="images/2.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="3.html"> <img src="images/3.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="4.html"> <img src="images/4.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="5.html"> <img src="images/5.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="6.html"> <img src="images/6.jpg" alt=" Click to see the image " width="88" height="90" ></img></a><a href="7.html"> <img src="images/7.jpg" alt=" Click to see the image " width="88" height="90" ></img></a></span></div>Now my problem is that i get this borders around the pictures that mess up the hole thing...the border is coming from <a> tho i have "border: none"...so how can i fix this? Thank you in advance!

Link to comment
Share on other sites

put this in your cssimg {border: none;}

:) Thank you very much, it worked! The funny thing is that when i waked up this morning i was thinking that the only thing left would be to try that...but somehow, i thought it wont work since the borders seam to have something to do with <a>...Thank you again!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...