WordPress.org

Ready to get started?Download WordPress

Forums

why is this so WRONG???????????? (13 posts)

  1. madmax019hotmailde
    Member
    Posted 7 years ago #

    take a look at this:

    http://karreth.com/mac/index.php/about/

    why is there so much space around my iweb templates ad? it should only have 7px as set in the stylesheet!

    BUT THE SPACE BELOW AND ABOVE IS ALLWAYS MORE!!!!!!!!!!

    WWWHHHHHHHYYYYYYYY?

    i am soooooooooo frustrated!

    please someone help me!

    max

  2. fifthleg
    Member
    Posted 7 years ago #

    From a desktop publishing point of view, it looks like the 7px on the bottom is "nudging" 2 lines of text instead of just one. If the ad or your 7px measurement were slightly smaller, I think you would get the result you want.
    Alternatively, increase the line height in your body text slightly.
    I *think* that would get you the appearance you want.
    HTH.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    When you add a margin, you're increasing the size of the block by that many pixels. In your case, you added 7 pixels.

    When a unit is floating like that, and text is wrapping around it, the text will only move under it when it can clear the block entirely. In your case, there's extra space at the bottom because 7 pixels make the block tall enough that the text underneath it cannot clear the block + the 7 pixel margin, and so it has to go down another line before it can move underneath the block.

    In other words, you added a lot of margin, you just didn't know that margins are *hard* with regard to text wrap.

  4. madmax019hotmailde
    Member
    Posted 7 years ago #

    this is the css tags for divs and images that i modified:

    * {
    padding: 0;
    margin: 0;
    }

    img {
    border: 0;
    padding: 7px;
    }

    div {
    padding: 7px;
    }

    i also tried changing the line spacing - but that made no effect! i tried all sorts of text movements and other stuff!

    there must be some tag in the css that changes this - i copied the css thing over here so you can take a look:

    http://karreth.com/style.css (opens in new window)

    anyone have more ideas?

  5. Samuel B
    moderator
    Posted 7 years ago #

    Why not start with 0px padding on the div's and img's and increment upward from there.

  6. madmax019hotmailde
    Member
    Posted 7 years ago #

    nope sorry - that didnt change anything 2!

    anyone know how i can contact the k2 developers (except from their forum which gives absolutetly no answer!)???

  7. madmax019hotmailde
    Member
    Posted 7 years ago #

    bump

  8. IcelandDream
    Member
    Posted 7 years ago #

    I guess you have it fixed? I don't see a problem besides lack of css knowledge.

  9. madmax019hotmailde
    Member
    Posted 7 years ago #

    nope its not solved - if you look at the top ad its fine - but the bottom one still shifts the text!

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    madmax: The real problem here is that nobody seems to understand what the hell you're talking about. Your page looks correct to me. It's doing exactly what it is supposed to be doing.

    What are you seeing that is so horrible? You have adblocks in there and the text wraps around them just like it should. Where's the problem?

    I mean, I can see that your XHTML is invalid because of the invalid code blocks and the extra blank space you have there, but for the most part, it displays more or less correctly at least.

    Fix your code and then maybe it will do what you want it to do.

  11. IcelandDream
    Member
    Posted 7 years ago #

    I'm still not sure what the problem is. You have the ads outside of the paragraph which would make it appear differently between browser types. Perhaps move them inside the paragraph which would make a few pixel difference and more stable between browsers. Otherwise it is just a css choice no matter what theme you use.

  12. madmax019hotmailde
    Member
    Posted 7 years ago #

    then look in the paragraph - but forget it! i will find some way

  13. IcelandDream
    Member
    Posted 7 years ago #

    Sorry I'm too stupid to understand your mystery.
    But I'll easily forget it.

    borrachito

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags