Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Text Wrap Problem

    I have a content div on my site. Inside the that I have a bio class that I want to use with a picture and some text about me....here's the bio class:

    .bio{
    font-family: "Times New Roman", Times, serif;
    font-size: 14px;
    font-weight: bold;
    color:#353E49;
    }

    .bio img{
    float:left;
    }

    When I use this in my page, the picture appears behind the content div. Is there anything I should add to .bio img so that the image will appear in front of the content div? I'ver heard something about using the clear variable...would that be relevant here?

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Judging by the link you gave and the html you posted, I'd say...

    ...oh, wait.

    It'd be nice to see the code, or a link to your page.

  • #3
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    echo"<div id='main'><div class = 'heading'>A Little Bio of The Sandman and Why He Has Created This Fantastic Site!</div>";
    echo"<div class='bio'><img src='userImages/b549397b2f2b4478b8542a6bb1a9ede1_me.jpg' class='floatImg'></img>";
    echo"asdfasdf<br>";
    echo"adsjffjdsaflj</div>";

    echo"</div>";

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Thats still really not enough info. What browser is the image not displaying correctly? Have you tried the site in more than one browser? We would prefer the outputted code after it gets to the client not the server side code. A link or the rest of your code would be helpful.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by moonwalkercs
    <img src='userImages/b549397b2f2b4478b8542a6bb1a9ede1_me.jpg' class='floatImg'></img>";
    should in the <img src="blah.jpg class="FloatImg" /> format.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •