Jump to content

block problems?


kalivos

Recommended Posts

Hi, I'm new to CSS so forgive me if this is a REALLY stupid question.

I'm trying to make a drop down menu (Which is working so far). I'm trying to add an image to the right of some of the links. I found that the image is pushed to the next line. This is for both IE and FF. 1) What's causing the image to be pushed down. 2) What action should I take to fix it?

[code]
--CSS--
#nav a {
display: block;
width: 10em;
}

#nav img {

float:right;
}

--HTML--
<ul id="nav">
<li><a href="#">test</a><img src="images/arrow-right.gif">
[/code]


Thanks in advance!
Link to comment
Share on other sites

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.