CSS right: <value>px; element.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Why does it not work on Opera?

I just recently designed my Homepage to the matrix theme and decided to add a button-like image to the header - mainly because I've never made one before.

The CSS for it can be found Here under the ID heading-cp

It works in Mozilla and IE but not in Opera, why is that?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Looks the same in Moz1.3 and O7 to me.

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Yeah sorry, I was talking about Opera 6

dk01's picture

He has: 516 posts

Joined: Mar 2002

Try adding width:100%
-dk

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Quote: Originally posted by dk01
Try adding width:100%
-dk

Thanks but...nope, that doesn't make a difference Sad

dk01's picture

He has: 516 posts

Joined: Mar 2002

Change your style to this:

#heading-cp {
position:absolute;
top:50px;
right:10px;
float:right;
text-align: right;
width: 100%;
}

Worked in my Opera 6.

-dk

Renegade's picture

He has: 3,022 posts

Joined: Oct 2002

Quote: Originally posted by dk01
Change your style to this:

#heading-cp {
position:absolute;
top:50px;
right:10px;
float:right;
text-align: right;
width: 100%;
}

Worked in my Opera 6.

-dk

Thanks, that works now, I didn't add in the text-align:right; bit Laughing out loud

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.