W
W
wolf-98302014-04-03 19:25:15
css
wolf-9830, 2014-04-03 19:25:15

How to set the position for a specific browser?

Hello everyone, I have a question for you:
In my IE browser, my site is displayed normally, but in the opera the title has shifted slightly down.
How can I fix it? I tried to do this, but it didn't work:

#main_title{
position: absolute;
left: 40px;
top: 10px;
color: white;
-o-top: 0px;
font-family: "Verdana";
font-size: 20pt;
}

How to fix?

Answer the question

In order to leave comments, you need to log in

7 answer(s)
S
sergealmazov, 2014-04-03
@wolf-9830

* {margin: 0; padding: 0} is a solution. Paste CSS at the beginning and enjoy life.

Y
Yuri Lobanov, 2014-04-03
@iiil

Reset the styles first with Reset CSS. Then write styles.

I
Ilya Shabanov, 2014-04-03
@ishaba

O brave new world!
To get started, read something like browser (vendor) prefixes
Write browser versions in which you watch all this
show more code here it is too small to draw any conclusions

K
Konstantin Kitmanov, 2014-04-03
@k12th

A classic of the genre: first make it work in browsers (Chrome/FF/Opera), then insert crutches for IE using conditional commments.

S
sergealmazov, 2014-04-03
@sergealmazov

Remove -o-top

H
hadra, 2014-04-03
@hadra

To start, update

*{box-sizing:border-box;
margin:0;
padding:0;
border:0;
text-decoration:none;
}

2nd advice, knowing I before that, I saved a lot of time. Don't use px for the font.
3rd php agent... the script can be found.. and to def. browser your script, and glue them together.

K
Konstantin Velichko, 2014-04-04
@Zoxon

I bet the parent doesn't have position: relative

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question