![]() |
|
HTML positioning - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Design (https://sinister.li/Forum-Design) +--- Forum: Web Design (https://sinister.li/Forum-Web-Design) +--- Thread: HTML positioning (/Thread-HTML-positioning) |
HTML positioning - Yung Lean - 11-29-2013 So I am coding a website I have nearly finished so I showed my work to some people and they told me that the website displays not in the middle of their screens. in my screen it is right in the center and on others its on the left side. So how can I make sure that my website will be in the center on any screen and any resolution. RE: HTML positioning - bluedog.tar.gz - 11-29-2013 You are building the website on the resolution on your own screen. To center it simply put a wrapper or a container around it and set the margin on 0px auto. RE: HTML positioning - Yung Lean - 11-30-2013 (11-29-2013, 11:26 PM)bluedog.tar.gz Wrote: You are building the website on the resolution on your own screen. could you write an example? RE: HTML positioning - bluedog.tar.gz - 11-30-2013 <div id="wrapper"> <div id="example"> I want this centered! </div> </div> Then give #wrapper a margin of 0px auto with the desired width. RE: HTML positioning - Yung Lean - 11-30-2013 (11-30-2013, 02:07 AM)bluedog.tar.gz Wrote: <div id="wrapper"> Thank you RE: HTML positioning - kawub - 02-12-2014 was wondering the same thing. Thanks you. |