Jump to content

CSS help


NLT

Recommended Posts

I need my image a link.

This is the normal line:

<img src="images/twitterButton.png" class="buttonleft" />

But if I do

<a href="http://twitter.com"><img src="images/twitterButton.png" class="buttonleft" /></a>

My CSS doesn't work then.

Link to comment
Share on other sites

i am pretty sure if you would be less brief in describing your problem you probably would have solved this yourself...

 

So if i understand you correctly you want your image to be a link.

Although your image is missing an alt=  attribute the stuff below should just work. unless.....we are missing some code.

 

So your might not showing us all the code that is influencing the stuff above. Do you maybe have a link to an online example of what your doing/trying?

 

if not i recommend to install firebug, and inspect the elements and see where they get there styles from.

Link to comment
Share on other sites

Yes. I got a twitter image which I want it to be linked to my twitter. I've done 2 pages for you to look at, one with just no a href just plain page, and one with me trying to do the CSS and you can see how it messes up the CSS.

 

 

This is the link with no a href on the images:

http://fustigate.net/test/nolink.php

 

This is the link WITH a href on the images:

http://fustigate.net/test/link.php

 

Look at the style messing up. The Twitter images should be beside the ad.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.