Tuesday, December 29, 2009

Coding Help.. CSS Coding.?

That is part of the code that im currently working on, i want to add a link so that when you click on the picture it takes you to a different page. the page being: http://www.myspace.com/reneecassar



anyone know how to do this?



sorry if i dont make sense.



span.blacktext12 {visibility:visible !important;background-color:transparent;



background-image:url(http://images.mes2.com/RC/banner.jpg);ba... left;font-size:0px; letter-spacing:-0.5px;



padding:0px !important; width:435px; height:200px; display:block !important; }



span.blacktext12 img {display:none;}



Coding Help.. CSS Coding.?

You need to use an anchor HTML tag to create a link. For example, to link to Yahoo, you would use %26lt;a href='http://www.yahoo.com'%26gt;Place text or a picture here%26lt;/a%26gt;. For images, this isn't hard. You just put the image inside the anchor: %26lt;a href='http://www.yahoo.com'%26gt;%26lt;img src='yourimage.jpg' border='0'%26gt;%26lt;/a%26gt;. Notice that I added border='0'. Linked images normally get a border that looks ugly, so that removes the ugly border.



What I noticed is that you primarily use background-image settings to place images on your page. You cannot link a background image. However, you can link the text hovering above it. Then, it will appear to the casual user as though the image was linked and not the text. They don't know which one they are clicking on - they just click.



Coding Help.. CSS Coding.?

I've done a bit of CSS and HTML but it's been ages since I last did it- a site I always used was http://www.w3schools.com/ it has really good CSS, Javascript, HTML, XHTML tutorials. I really like em. And they also have example pages too.



Anyway hope that is helpful- I know it's not exactly the answer but it is a 'help' if you need it.

No comments:

Post a Comment

 
dedicated server