2013-07-31 02:12
浏览 41


Im trying to implement a more accurate h tag structure on my opencart site for seo purposes. For those that are unfamiliar with the html in opencart, most pages are split with php calls being made to seperate header, main body and footer files. I want to have a h1 tag that is slightly different on the main page to the product page by writing internal css to change the font size to something slightly smaller.

I therefore added the code (below) to the top of the products page which seems to work but leaves a massive white space at the bottom of the page below the footer. Example at this link: http://www.imbued.co.uk/sleep/aborro-bed

How do i implement this using css correctly?

h1 {
font-size:2em !important;
margin:0 0 20px !important
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • dongmo6937 2013-07-31 02:25

    Try this:

    "h1" on main page:

    #content-home h1 {
        font-size: 2em;
        color: red;

    "h1" on product page:

    .product-info h1 {
        font-size: 1em;
        color: green;
    解决 无用
    打赏 举报

相关推荐 更多相似问题