SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Div appears too low down

    Hey,

    Take a look at this page:

    http://www.hangingditch.com/monthly-specials/

    If you scroll down to the bottom you will see a "Buy Now" button with a drop down but it is appearing too far below the Red box, it should be inside it like the Pay now buttons.

    Can i change my existing styles to do this?

    Thanks
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  2. #2
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    I won't even get into how invalid your markup is (ok I gotta so here I go)

    For one thing, I see <tbody> and <tr> tags there but I see no openinig <table>. SO invalid there.

    Next, I see several instances of you nesting like this
    <p><p>testkjlfd;</p></p>

    Why the extra??

    All in all that ..thing needs a recode(or a cleanup)

    But the solution is you need to float this element
    Code:
    <div class="right right-specials" style="margin-top:0">
           <div style="color:#fff; float:left;height:100px"><p>test</p></div>
    Always looking for web design/development work.
    http://www.CodeFundamentals.com

  3. #3
    SitePoint Wizard billy_111's Avatar
    Join Date
    Jul 2009
    Posts
    1,683
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah i see.

    I was trying to figure out why it was doing that! Problem is we have another designer who puts some of the pages together in terms of CSS hence the invalid markup and then i have to go in and clean up

    Thanks Ryan
    Software Engineer ASP, ASP.NET, VB, PHP

    Kind regards
    Billy

  4. #4
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,721
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)


    Glad it worked . You're welcome.
    Always looking for web design/development work.
    http://www.CodeFundamentals.com


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
  •