![]() |
Height and font-size don't work on IE8?
I'm trying to make my drop menu bigger, but for some reason the size won't change. It works on Google Chrome and Firefox but not IE. I even made IE a stylesheet but still didn't work. My code
Code:
.test { |
Has always worked in IE
check this out in IE and see if you notice the increase in font size: Code:
<style type="text/css"> |
I meant that it won't work with the dropmenu, it works with everything else.
|
You should post your drop menu code with all css
|
here's my drop menu
Code:
<select name="engine" class="engine" id="engine" title="Choose search engine">here's the css part Code:
.engine { |
font-style:bold; No such thing. Font-styles are normal, italic, and oblique and I never could see any difference between italic, and oblique. You could use font-weight: bold;
outline:none; is the default, so it doesn't matter (I did use outline for one dropdown) Had to remove top:-28px; so we could see the dropdowns NOTE: the top:-28px; could mean that your problem stems from the parent of the dropdown. Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
yep it seems to be the doctype, thanks so much.
|
It fixed the IE problem but now only safari is giving me problems. The menu bar height isn't working again lol.
This is my full code Code:
<!DOCTYPE html>Full css Code:
/* Only edit this if you know what you're doing. */ |
em for Web fonts
Don't know if this might impact your menu, but think EM is a better unit of measurement for fonts on the Web
See for instance http://www.w3schools.com/cssref/css_units.asp Quote:
|
Still didn't fix the problem in safari. It has to be a css problem but my css past the validator with no errors or warnings.
|
First thing I did was to do a short reset to the css so we no longer need to do a position:relative; on #header. You should try to get rid of all of them, they normally are not needed.
Corrected the errors in the code. Changed width in #searchbox and removed the left padding so there would be a separation between it and the dropdown. Removed #header bottom border and redid the height to reflect that. Looks good in FF, IE8, and safari. Code:
<!DOCTYPE html> |
Nope sill didn't work, this is what it looked like in safari
http://i49.tinypic.com/2nsrsjs.jpg Hmm this seems to be a browser problem. I used web inspector on it and tried to change the height but sadly only the width changes, i even tried to change the padding and margin. |
Got it!! have to use
Code:
line-height |
| All times are GMT +1. The time now is 09:04 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.