Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

Re: Div Too Long, Extends Off Screen, h Tags Not Working

$
0
0

width: 100% + padding-left + padding-right = more that 100%:

 

.body {

    width:100%;

    height:auto;

    background-repeat: no-repeat;

    background-position: center;

    background-repeat: no-repeat;

    background-image:url(../images/DBBACK.png);

    font:Arial, Helvetica, sans-serif;

    font-family:Arial, Helvetica, sans-serif;

    padding-left:50px;

    padding-right:50px;

}

 

'body' is not a word I would choose to use as a class for a <div>.

 

h1, h2 problem etc:

 

In the style.css file remove h1, h2, h3, h4, h5, h6 from the default reset:

 

html, body, div, span, applet, object, iframe,

h1, h2, h3, h4, h5, h6, p, blockquote, pre,

a, abbr, acronym, address, big, cite, code,

del, dfn, em, font, img, ins, kbd, q, s, samp,

small, strike, strong, sub, sup, tt, var,

dl, dt, dd, ol, ul, li,

fieldset, form, label, legend,

table, caption, tbody, tfoot, thead, tr, th, td {

    margin:0;

    padding:0;

    border:0;

    outline:0;

    font-weight:inherit;

    font-style:inherit;

    font-size:100%;

    font-family:inherit;

    vertical-align:baseline;

}


Viewing all articles
Browse latest Browse all 92406

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>