I'm having problems setting my h1 font size, I'm currently using this in my css file and its having no effect, does anybody know where I'm going wrong? } div.iconimage { padding-top: 13px; text-align: center; } #header h1{ font-size: 6px; } HTML: (ignore the div icon image, I was just putting it in context with the other stuff, its at the end of the document) Dan
I can't really tell before i see the whole CSS, but i'm guessing on the following have caused the issue: 1. You're using inline styles for the headings you're trying to change (ex: <h1 style="font-size: 16px">heading</h1>) 2. You've already set the size of headers within the HTML document (in the <head> part within <style> tags). 3. There's a more specific declaration somewhere in the CSS file. for example: html #header h1 { ... } Code (markup): is more "powerful" than: #header h1 { ... } Code (markup): because it's more specific. *sigh* ok i'll stop here. How about you show us some code?
I had a look at what you were saying and I still couldn't get it to work, the code that you suggested may be the problem (<h1 style="font-size: 16px">) seems to do the job I want it to though so I've used that. Thanks for the help, green love for you
Yes, it will work, since inline style will override any other declarations you've written before. But remember, this way you'll have to edit each header should you ever change their size, which is really tiresome. So i suggest you try to find where you specified a font size for headers before.