Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Width problem

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37549

    There is some issue with CSS of the site. There is some free space on both sides of the actual content, its intended but on mobile devices (iphone, ipad etc) the free space of the left side of the page gets chopped off but right one stays. How can i fix this??

    Here is how it looks on PC: http://i.imgur.com/p6lk3.png

    and this is how it looks on mobile: http://i.imgur.com/NsW5g.png

    Any help will be highly appreciated.

    #100833
    Senff
    Participant

    This stuff often happens when some elements take up the full width of the page (because they have no width assigned), while others are assigned a specific width. The use of “min-width” for blocks can also cause issues.

    Kinda hard to see without an actual live example.

    #100851

    In my case, only body tag has no width assigned. All others have it and there is no min-width either.

    Here is link to the site: http://www.maximum-tech.net
    See if you can tell what can solve the issue.

    #100854
    Senff
    Participant

    In the sidebar, there are some elements that are wider than the actual sidebar allows (162px).

    The login form is placed in a table that has a width of 269px, and the Facebook iFrame (under “Connect”) has a width of 450 pixels. Although not visible directly, this makes your whole wrapper wider than the designated 1200 pixels — it’s actually some 1500 pixels or so.

    That’s how iPad sees it. It zooms out based on the elements that are actually there, whether they’re visible or not.

    I’m not sure if you really have to reduce the widths of those elements or if a simple overflow:hidden; on the wrapper or the sidebar is enough, so give it a try.

    #107430

    @Senff
    Can you please tell me how can i decrease the width of the table which has login form? I looked for it everywhere but can find anyway to fix it.

    Chrome shows it fine but IE and all mobile devices dont show it right.

    #107431
    Paulie_D
    Member

    It’s in the HTML…the table has a width set of 269px in the inline css.

    Now how that HTNL is generated is another matter.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.