Page layout problem

Discussion in 'CSS' started by Sayedtaqui, Dec 17, 2012.

  1. #1
    I have designed a page of a religious website which looks fine in all the browsers however, the page breaks like anything in mobile or if you decrease it's size.

    I m a new designer and I whatever design I create I always have the same problem.

    ourshiaislam.com/nauhay/

    Any mistake that you think I doing?

    My pages (except this one) looks different(margin, padding infact somewhat broken) in different browsers, is there something that I missing out?

    Thanks in advance
     
    Sayedtaqui, Dec 17, 2012 IP
  2. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #2
    scottlpool2003, Dec 17, 2012 IP
  3. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #3
    There is nothing wrong with the theme, that's working fine. I m having problem with resizing the page, you see the PLAYLIST? on my page, if you resize your browser or open this page in a mobile phone, the playlist and the button will break from its position.
     
    Sayedtaqui, Dec 17, 2012 IP
  4. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #4
    I think it's this:

    You're using a responsive layout, but this part of the code gives that section a fixed width of 500px which means it won't shrink with the rest of the content.
     
    scottlpool2003, Dec 17, 2012 IP
  5. Sayedtaqui

    Sayedtaqui Greenhorn

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #5
    Thanks for the quick reply, actually its important to use that code for the song to play in a small window.
    so what do I do to fix it?
     
    Sayedtaqui, Dec 17, 2012 IP
  6. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #6
    Being turdpress the markup is automatically trash -- and in this case it's REALLY BAD trash that I'm shocked can even accept responsive layout given the endless pointless DIV for nothing, presentational use of classes, and being another poster child illustrating everything WRONG with HTML 5.

    I'd throw it out and start over with a RECOMMENDATION doctype and semantic markup, because to be frank there's nothing there even worth TRYING to save, and to get it truly mobile friendly would be more work from where you're at than it would be starting from scratch.
     
    deathshadow, Dec 17, 2012 IP