WordPress.org

Ready to get started?Download WordPress

Forums

H1 left and right margins (2 posts)

  1. astima
    Member
    Posted 2 years ago #

    I am having trouble senting my right margins for my h1 CSS definition. No matter where I try to define my right margin it doesn't move. Here is the page and talking about:http://www.stimadesigns.com/hunterdondistributors/our-portfolio/specialty-imports/

    I don't want the text to run up so close to the edge of the image or over the edge of the image.

  2. peredur
    Member
    Posted 2 years ago #

    There are at least two different <h1> examples on the page. The one that says 'speciality imports', and then the list of beer names further down. Different styles apply to these in each case. However, what they do have in common is that altering the right margin will not make any difference to their position. Examining the effect of altering the margin in Firebug will demonstrate why this should be so.

    What is it that you're trying to achieve? If you can tell us that, we may be in a better position to help.

    The theme uses tables for layout, as well. That's unfortunate, since most developers have moved away from this misuse of the <table> element, these days. But you may not have any control over that, if it came with your theme...

    I would also venture to suggest that using the <h1> tag for the lists of beers is not the best of practices, since it's hard to imagine in what sense they can be said to be level one headings. However, I can see that the effort needed to find another solution might put you off from changing that.

    HTH

    PAE

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags