Webpage Width Adjustment

I am new to web design. I want to set the page width so that it appears on a 800x600 resolution screen. I usually use Tables, but somewhere I read that excessive use of tables slows down the website. What else can I use and how to set the width?

+3
source share
2 answers

Yes, the tables are so 1995 ...

You should now use DIV and SPAN.

http://www.smashingmagazine.com/2009/04/08/from-table-hell-to-div-hell/

also, w3schools are a common resource for html starters

but, why bother, you can use the already made layout from sites such as: http://www.freelayouts.com/websites/html-templates

+1
source

DIV, :

   <div style="width:800px">
     <!-- your content here -->
   </div>

800 . , *.css. DIV, , . , .

   <div id="wrapper">
     <div id="topMenu">
       <!-- menu items -->
     </div>

     <div id="content">
       <!-- content -->
     </div>
   </div>

, . CSS:

#wrapper {
  width:800px;
}

#topMenu {
  width:800px;
  height:200px;
}

" divs", .

+4

Source: https://habr.com/ru/post/1737884/


All Articles