How do you change the following html code in order to make the page center, like the yahoo homepage.? - index of / order jpg
DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.0 Transitional / / EN">
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; html>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt;! - Created with CoffeeCup HTML Editor 2007 ->
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt;! - Http: / / www.coffeecup.com/ ->
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt;! - Brewed on 0/00/0000 00:00:00 _ ->
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; head>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; title> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / title>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / head>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; body>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; div> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; img style = "z-index: 100; left: 0px; POSITION: absolute; top: 20px" height = "671" alt = "" src = "file: / / C: \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Users \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Krawczyk Peter \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Desktop \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ blue_back.jpeg "width =" 766 "border =" 0 "> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; img style = "z-index: 100; LEFT: 0px; POSITION: absolute; top: 0px" height = "20" alt = "" src = file ": / / C: \\ \\ \\ \\ \\ \\ \\ \\ Users \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Krawczyk Peter \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Desktop \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ top_black.jpg "width =" 766 "border =" 0 "> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / div>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / body>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / html>
2 comments:
Easy dude ...
just use a little CSS between the tags of the head as
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; head>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; title> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / title>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt, style type = "text / css>
Body (
text-align: center;
)
. containing (
margin-left: auto;
margin-right: auto;
)
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / style>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / head>
then add class = "container" to the div tag as follows ....
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; div class = "container">
primarily because the label of the center is not prohibited by the W3C and as a rule.
Hope it helps;)
The center is a general label centering and can be used (see paragraphs, titles, images, forms, tables, etc.), with each page element, even if a different method of development.
U0026lt To center an element on your page, simply the start tag \\ \\ \\ \\ \\ \\ \\ \\; center> at the beginning of the section in the middle and an end \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / center> tag at the end of it. Everything between these tags will be centered.
The Day Center automatically starts a new row below. They Do not use labels \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, P> O \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; BR> to start a new line.
Post a Comment