SitePoint Sponsor

User Tag List

Results 1 to 14 of 14

Thread: DIV Breaking

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DIV Breaking

    For lack of better words, my DIV keeps breaking. In the meantime, I've temporarily placed all of these ridiculous spacer codes
    HTML Code:
     
    in order to prevent the break from occurring. I know, however, that these spacers aren't suitable, as they don't align properly in IE.

    I'm not sure why my DIV keeps doing this, but my best guess is that something is missing in my code. Would anyone care to take a look? I would truly appreciate it!

    http://www.djmusicality.com/contact.html

  2. #2
    Visible Ninja bronze trophy
    JeffWalden's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,709
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Why don't you simply place each line in it's own block element? <div></div>

    Or if you don't want to go that route you could just add <br /> to create a new line.
    TAKE A WALK OUTSIDE YOUR MIND.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it's when I add the line breaks
    HTML Code:
    <br/>
    that the div itself breaks.

    However, I have not yet tried the div's as Block elements. I'll give it a go...

  4. #4
    Visible Ninja bronze trophy
    JeffWalden's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,709
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    What do you mean they break the div? Sorry, not understanding here.
    TAKE A WALK OUTSIDE YOUR MIND.

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...no luck with the block elements. There's something else wrong with my code I believe

  6. #6
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,590
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hi, what exactly is breaking and where once you remove those spaces?
    Always looking for web design/development work. Willing to do it cheap to build portfolio!

  7. #7
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is an image showing what's happening:




    This is happening for my Content Div

  8. #8
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,590
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Remove the &nbsp;s and PLEASE STOP MESSING WITH THE PAGE.

    Every 2 minutes when I refresh it keeps being new code.

    Make hte page as broken as you can and LEAVE IT
    Always looking for web design/development work. Willing to do it cheap to build portfolio!

  9. #9
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not quite sure what you mean. I haven't updated the site at all today.

  10. #10
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,590
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Then somethings going wrong at my end . Sorry about that.. This is the 2nd time today.

    Either wa, can you please remove all the &nbps;s and break the page for us to fix
    Always looking for web design/development work. Willing to do it cheap to build portfolio!

  11. #11
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, of course. Here it is:

    http://www.djmusicality.com/contact.html

  12. #12
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,590
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Hi, you try and float ".mike" so it tries to shrinkwrap to the smallest amount of width possible . Just remove the float
    Always looking for web design/development work. Willing to do it cheap to build portfolio!

  13. #13
    SitePoint Enthusiast
    Join Date
    Feb 2010
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That works perfectly. Thanks so much! You rock

  14. #14
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,590
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You're welcome .
    Always looking for web design/development work. Willing to do it cheap to build portfolio!


Bookmarks

Posting Permissions

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