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
Added: Nov 14, 2004 Rating: Less than 3 votes yet
Level: Beginner Software:




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
|
See Also:
- I need to have two tables sit side by side, but no matter what I do, they end up stacked. What gives?
- How can I create tables with vivid colors with no spaces or lines between them?
- Why when I create a table with empty cells do I get what looks like a raised or miscolored cell where there is no data?
- Every time I try to list numbers in columns with text, I can't get the decmal points to line up. What gives?
- I have a rather expensive painting I want to show on my site, but I can't afford a frame. What can I do?
- How can I present text in columns, like a newspaper?
- Columns are nice. How can I divide them with a line?
- How do you get your text into those pretty boxes?
- How to I get things to align properly within my tables?

10 Random HTML and CSS Tutorials :
10 Random Markuptutorials.com Materials:





