Problem in Wide Screen LCD Monitors

Discussion in 'CSS' started by seokochin, Oct 1, 2008.

  1. #1
    My template is having alignment problem in wide screen LCD monitors.They are aligned left.
     
    seokochin, Oct 1, 2008 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Yeah, so? Are we supposed to guess at what you want and what it is that's causing your anguish?

    Describe the problem and post your code, or possibly a link.

    gary
     
    kk5st, Oct 1, 2008 IP
  3. seokochin

    seokochin Banned

    Messages:
    298
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I want to see the design aligned center in all screens.
     
    seokochin, Oct 1, 2008 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Did you not read my post? "Describe the problem and post your code, or possibly a link."

    gary
     
    kk5st, Oct 1, 2008 IP
  5. steelfrog

    steelfrog Peon

    Messages:
    537
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Chances are you've aligned your containers using absolute values, which is a common mistake beginners make. It'd be much easier for us to tell you what the problem is if you could provide us with the code or, preferably, with a URL.
     
    steelfrog, Oct 2, 2008 IP
  6. chelvanweb

    chelvanweb Peon

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Two things are possible for this.

    First :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Replace your document type with the above code.

    Second:

    in body Style give the values

    margin-right: auto;
    margin-left: auto;


    It will fix the issue
     
    chelvanweb, Oct 4, 2008 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    Unless the OP has declared a width for body, it will take up the full width of the viewport. There will be no side margins to adjust.

    There is no point in suggesting a transitional xhtml DTD. He may be using an html syntax. Without compelling reason otherwise, one should use a strict DTD.

    There is no point in guessing. If the OP desires a solution, he will post the information needed to help him.

    cheers,

    gary
     
    kk5st, Oct 4, 2008 IP