SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: CSS problems

  1. #1
    SitePoint Addict martinfamily2005's Avatar
    Join Date
    Jul 2010
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS problems

    I have a products page here: http://theicedteaguy.com/our-products

    When you click on some items, they go into your shopping cart. Once in the cart (must have items in there), there is an issue.....

    You can clearly see the cart is down at the bottom of the page, not between the sidebars as it should be. I can;t get it to the correct place, please advise.

    Thanks!

  2. #2
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by martinfamily2005 View Post
    I have a products page here: http://theicedteaguy.com/our-products

    When you click on some items, they go into your shopping cart. Once in the cart (must have items in there), there is an issue.....

    You can clearly see the cart is down at the bottom of the page, not between the sidebars as it should be. I can;t get it to the correct place, please advise.

    Thanks!
    it's because you have the table spanned out to 100% set it to a fixed width, and you should be good to go!

  3. #3
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,099
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaroninfidel View Post
    it's because you have the table spanned out to 100% set it to a fixed width, and you should be good to go!
    You;re right, but why using a table in the first place? This is asking for problems a table in a div! And not only that! A div, without any attributes except margin 0 auto, as well

  4. #4
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there are times and places that divs can be an issue to work with.

    I generally as a rule of thumb use tables on complex forms, and thats basically what he's using the table for, I don't see a problem.

    but on another note, on the product page I don't understand why he's wrapping his forms in an object tag.

  5. #5
    SitePoint Wizard donboe's Avatar
    Join Date
    Jun 2010
    Location
    Netherlands
    Posts
    2,099
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaroninfidel View Post
    there are times and places that divs can be an issue to work with.

    I generally as a rule of thumb use tables on complex forms, and thats basically what he's using the table for, I don't see a problem.
    Understand what you say, but I don't see this cart as a complex form. There are just four columns. Make header with four floating divs and do the same for the output(you could even use the same divs with an extra classs for the headings)

  6. #6
    SitePoint Member
    Join Date
    Nov 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah, actually, your right.

    and granted, if people are buying these iced tea's like crazy,

    there's going to be a whole lot of table cells that will slow the page down!


    haha

  7. #7
    SitePoint Addict martinfamily2005's Avatar
    Join Date
    Jul 2010
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry for the late response. This site runs on Wordpress, and the shopping cart is a plugin...I did not write it. This is what I was given to work with and I need to get it to work. I am going to set this to a fixed width and see how that goes. Thanks!

  8. #8
    SitePoint Addict martinfamily2005's Avatar
    Join Date
    Jul 2010
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That worked! Thanks.


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
  •