Answer the question
In order to leave comments, you need to log in
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;
}
Answer the question
In order to leave comments, you need to log in
* {margin: 0; padding: 0} is a solution. Paste CSS at the beginning and enjoy life.
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
A classic of the genre: first make it work in browsers (Chrome/FF/Opera), then insert crutches for IE using conditional commments.
To start, update
*{box-sizing:border-box;
margin:0;
padding:0;
border:0;
text-decoration:none;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question