Jump to content

problem aligning image in table


pleek

Recommended Posts

i have this code table

 

<TABLE class="bar">
<TR>
	<TD>
	Hello <A HREF="http://craigh.tlcrepair.net/smf2/index.php?action=profile;u=1" class="menu">Pleek</A> <IMG SRC="LogOut2.png">
	</TD>
</TR>
</TABLE>

 

but when i view it in ff the image doesn't line up right. its higher than all the text. If i put it in a new <td> it aligns right but then its way off to the side. How do i fix this?

Link to comment
Share on other sites

.bar {
background: url(barbg.jpg);
width: 100%;
height: 30px;
position: fixed;
top: 0px;
left: 0px;
right: 0px;
color: white;
padding-left: 10px;
float: left;
clear:both;
text-align:left;
}

 

and this is what it looks like.

hldav0ryzwcpty7zyffs.jpg

 

i need the text and the image to be even, each thing i try moves it some but doesn't make them line up.

Link to comment
Share on other sites

you could try styling the image direct i.e. <img src="...." id="bar_image" />

 

Then try to give it style such as:

 

float:right;

bottom: 0px;

 

or if the bottom: doesnt push it to the bottom, then try doing:

 

float: right;

top: 10px;

 

try a few things out dont give up.

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.