website promotion banner
eturnkeys
Your Ad Here
HTML and CSS  Home HTML and CSS Tutorials How can I have a fixed width left margin for use with a background graphic that has a dark left region?
rss

How can I have a fixed width left margin for use with a background graphic that has a dark left region?

Author: Jeff Singer More by this author
Browse Pages: << <  4  5  6  7  8 > >>


EXTRA ADVICE: Always make a background such as this 1281 pixels wide so that it does not "repeat" across the page on wide screens. Since 1280 is the maximum width, 1281 does the trick! ALSO: be sure you spell background as BACKGROUND! The most common bug here is to spell it as BACKROUND missing the G!!!

Example

  The left margin on this page is set to 120 pixels. You will probably have to adjust this for your particular needs. This method gives you more control than the percentage method, ie WIDTH=80%.

Source code

<TABLE WIDTH="400" >
<TR>
<TD WIDTH="120">
&nbsp; 
</TD>
<TD>
The left margin on this page is set to 120 pixels. 
You will probably have to adjust this for your 
particular needs. This method gives you more control 
than the percentage method, ie WIDTH=80%.
</TD>
</TR>
</TABLE>

See Also:



print this page tell a friend subscribe to newsletter subscribe to rss
Rate this Material: Bad 1 2 3 4 5 Excellent
Browse Pages: << <  4  5  6  7  8 > >>

Add comments to "How can I have a fixed width left margin for use with a background graphic that has a dark left region?"