February 2, 201115 yr Hey, Getting pretty annoyed over something simple. I have some of my text in H1 and H2 tags for SEO purposes, but im styling them so they dont look any different! Right, my website in FF: www.elliothesp.co.uk Looks fine, but then on the uni computers on IE: http://i232.photobucket.com/albums/ee81/_Alias_/ehesp.gif Now my CSS: h1{color:#efefef; font-family:Tahoma, Geneva, sans-serif;text-shadow: 1px 1px 1px #000;line-height:23px; font-size: 12px !important; font-weight: normal; font-style: normal;} h2{color:#efefef; font-family:Tahoma, Geneva, sans-serif;text-shadow: 1px 1px 1px #000;line-height:20px; font-size: 12px !important; font-weight: normal; font-style: normal;} Whats up with that? Not sure if the !important is right Ta
February 2, 201115 yr Validate here http://validator.w3.org/ as you have 15 errors and a div inside the h2 tag is not allowed. Edited February 2, 201115 yr by Wickham
February 2, 201115 yr Author Yeah but some of them are due to wordpress are they not? Also, I dont have it like that :/ <div id="whocontent"><h1>Im Elliot Hesp, a self.. *text*</h1></div> Thats how I have it, a h1 inside a div :/
February 2, 201115 yr Looks fine in IE8 and 7. What are the uni ones running? Maybe your uni is running IE6, try without the "!important" as that is on the font sizes (which seems to be the problem) and I am not sure if IE6 supported that properly in CSS or not. Really this is a misuse of H* tags. These are for headings - stuffing them with text will more likely harm your SEO than improve it. 'Who' & 'Latest Blog' etc - they are headings - as if you were writing a document.
February 2, 201115 yr Author Yeah it must be something to do with the Uni computers! And I was using the senSEO add on for firebug, it said I should use H1 tags with all the relevant information in it, and thats what I thought was best... May look into that
February 2, 201115 yr <div id="whocontent"><h1>Im Elliot Hesp, a self.. *text*</h1></div> Thats how I have it, a h1 inside a div :/ Not the h1, it's the h2 that is including divs and other stuff and you should recode that part.
February 2, 201115 yr Author Yup its all validated now, sorted the head stuff out. Will just put the h2 tags inside the divs, which I dont know why I didnt do anyway. Thanks alot.
February 3, 201115 yr Hey, Getting pretty annoyed over something simple. I have some of my text in H1 and H2 tags for SEO purposes, but im styling them so they dont look any different! Right, my website in FF: www.elliothesp.co.uk h1{color:#efefef; font-family:Tahoma, Geneva, sans-serif;text-shadow: 1px 1px 1px #000;line-height:23px; font-size: 12px !important; font-weight: normal; font-style: normal;} h2{color:#efefef; font-family:Tahoma, Geneva, sans-serif;text-shadow: 1px 1px 1px #000;line-height:20px; font-size: 12px !important; font-weight: normal; font-style: normal;} Whats up with that? Not sure if the !important is right Ta Don't know but i have had problems with IE and websites and its somtime a simple error like no spaces in the CSS sans-serif;text-shadow: The space by the ';'
Create an account or sign in to comment