Jump to content

[SOLVED] Mouse Over Swap Image


ballouta

Recommended Posts

Hello,

I have this css code that displays a small image (read more..) and as you notice, when mouse over another image is displayed to the right, it is working correct and without any problems in Internet Explorer while it appears in the middle in Firefox!

 

Can this code be edited to over cross this problem, or maybe i use anther code?

 

many thanks

 

<STYLE type=text/css>.right {
SCROLLBAR-FACE-COLOR: #a0a3a7; LEFT: 345px; SCROLLBAR-HIGHLIGHT-COLOR: #ebeef2; OVERFLOW: auto; WIDTH: 600px; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #d9e5f6; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #fafafb; SCROLLBAR-DARKSHADOW-COLOR: #ffffff; TOP: 213px; HEIGHT: 515px
}
.next {
MARGIN-LEFT: 17px; HEIGHT: 16px
}
.next A {
DISPLAY: block; BACKGROUND: url(images/more1.gif) no-repeat 0px 0px; MARGIN-LEFT: 170px; WIDTH: 100px; HEIGHT: 16px; TEXT-DECORATION: none
}
.next A:hover {
BACKGROUND: url(images/more2.gif) no-repeat 0px 0px
}
.next1 {
HEIGHT: 16px
}
</STYLE>

 

in body:

<DIV class=next style='width: 118px; height: 24px'>
<P style='align: right'><A class=lbOn href='index#$row[id]' rel=$row[id]></A></P></DIV>

 

Link to comment
Share on other sites

Don't quite understand what you're after, but

<P style='align: right'>

is wrong at the very least. There is no "align" in CSS. There is text-align: right; and there is float: right;.

Also, making all html tags and CSS uppercase is an odd practice.. although it can be valid depending on your document if it's xhtml instead of xhtml user lowercase html. (<a></a> not <A></A>).

Link to comment
Share on other sites

Hello,

 

let me explain in another way, the above style is applied for the more1.gif button (more news), the current Style makes this button to the right as I want, this is on Internet Explprer and till here every thing is fine as we want.

But the same page if opened on fire Fox this more1.gif button comes to the middle instead of the right side.

 

A for <p align right> i tihnk it makes no sense i removed it.

 

What I want to know, if the style mentioned above correct and has no problems in firefox (is it compatible)? I mean is it the problem from centering the button on firefox or it is smthg else in the code?

 

thank you

Link to comment
Share on other sites

although it can be valid depending on your document if it's xhtml instead of xhtml user lowercase html. (<a></a> not <A></A>).

Did I type that gibberish?

 

*although it can be valid depending on your document type. If it's xhtml instead of html use lowercase html. (<a></a> not <A></A>)

 

And I think your problem is with the

<P style='align: right'>

.

That's not non existing CSS, if Internet Explorer understands that it's making up things.

Try <P style='float: right;'> instead.

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.