• Resolved goldmember

    (@goldmember)


    on this page, even though i added a right-aligned image to the page, and the image floats right, for some reason the text isnt wrapping to its left and only starts below the bottom of the picture. why wont the text wrap to the left?

    here’s the code i have in my page content entry box:

    <img src="https://bestsodforme.com/wp-content/uploads/sodfarm.jpg" alt="Virginia Sod Farm" title="Premier Turf Farm" width="288" height="214" class="alignright size-full wp-image-28" />
    <h1>Welcome to Premier Turf Farms</h1>
    <h3>Serving corporate and residential properties in Northern Virginia, Washington D.C., the Shenandoah Valley and West Virginia panhandle.</h3>

    please advise. thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter goldmember

    (@goldmember)

    thanks. well i think a lot of the errors are caused by the fact that i incorrectly canceled out the php that adds the site title and site description to the banner.

    can you look at the code for the header and tell me if i have the /*and */ in the wrong place???

    php is not my strong point and it was kind of a shot in the dark.

    Um – that’s totally wrong. I’d suggest that you remove the commenting and then use CSS to take the site title & description off the page.

    Thread Starter goldmember

    (@goldmember)

    i like that idea. thanks!

    Thread Starter goldmember

    (@goldmember)

    so i did that, and ran the validator and there’s no errors, yet the text is still NOT wrapping around the picture.

    any idea what’s happening here?

    Try adding display:inline-block; to the h1 and h3 tags.

    Thread Starter goldmember

    (@goldmember)

    well that’s a start. the h1 display worked, pulling that heading to the left of the pic. but the h3 is still stuck below it event though I applied the inline-block.

    please advise. thanks.

    Try changing the h3 to display:inline; and then add some padding/margins to suit.

    Thread Starter goldmember

    (@goldmember)

    bingo. thank you!

    Thread Starter goldmember

    (@goldmember)

    sorry, got another followup. so i added a bottom margin to the h1 and h2. and tinkered with a bottom margin for some of the other headings and for some reason they’re not getting applied. any idea why not???

    h1 {display: inline-block; font-size: 24px; margin-bottom:20px;}
    h2 {margin-bottom: 30px;}
    Thread Starter goldmember

    (@goldmember)

    i’m having the same problem with the margin-bottom on this site too. any ideas???

    Thread Starter goldmember

    (@goldmember)

    actually, gonna close this thread and start anew with the new issue because it seems to be a different issue.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘picture float issue’ is closed to new replies.