tags:

views:

548

answers:

3

Hi I seem to be having an issue trying to align an H1 tag to the left. I know it is something in my template.css file but I can't work out what.

Have a look >

Should be easy for any CSS guru I hope ;)...

+4  A: 

Use a developer tool like Firefox’ Firebug, Safari’s WebInspector or IE’s Developer Tools to inspect the document. Those will probably show your, that it’s the .previous_page’s bottom margin that causes a conflict with the top margin of the h1.

Gumbo
Thanks Gumbo, you where right it was a bottom margin on the previous page link causing the issue. many thanks indeed :)
morktron
+2  A: 

It's hitting that floated "Previous Page" link and wrapping around it. It's left-justified, but it just looks like it's centered because of where it hits that float.

Try:

h1 { clear: left }
Tyson
thanks Tyson, it working already but that is a good trick to remember, thanks :)
morktron
+1  A: 

Try changing your h1 style to this:

#flypage h1 {
  float: left;
  margin-bottom: 20px;
  margin-top: 20px;
  text-align: left !important;
  width: 100%;
}
Dave Ward
Thanks Dave, it was the previous page button affecting it but i did end up adding a top margin to the H1 tag, looks much better thanks :)
morktron