Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Make7

(8,547 posts)
3. Can't you just do the same thing with style for the <body> tag?
Sat Apr 14, 2012, 05:09 PM
Apr 2012

Example of external style sheet entry:

[div class="excerpt" style="border: 1px solid #bfbfbf; border-radius:0.4615em;"]body {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}
Or you could create a div-element container to make things more obvious:

[div class="excerpt" style="border: 1px solid #bfbfbf; border-radius:0.4615em;"]Example external style sheet entry:

[div class="excerpt" style="background-color:#ffffff; border:none;"]div.page-container {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
}
Basic html code:

[div class="excerpt" style="background-color:#ffffff; border:none;"]<html>
    <head>
        blah .. blah .. blah
    </head>

    <body>
        <div class="page-container">

            your code here

        </div>
    </body>
</html>[br /]

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Retired Forums»Website, DB, & Software Developers»jQuery experts...how woul...»Reply #3