This colored division is 100% the width of your browser screen
Web Studio Next If you are not familiar with web studio refer to the instruction page CSS BACKGROUND IMAGES II This time we'll look at putting backgrounds in elements on the page and positioning You can use web studio Draw to make colored .png images and putting your own images on the page inside the centering table so we'll look at how to put backgrounds outside that table and use images to fill a division and how to make those "colored boxes" without any images at all. Web Studio Next CSS Backgrounds - Lesson II
This is a colored HTML object
Why use a colored division instead of an image?
An HTML object is a division A TIP: When you put the HTML object on your page to attach the bar.gif use it as the place holder graphic. Then when you drag it down the page look at the Y position in the caption bar and it will tell you the exact pixels for top:0px; distance down. Plus you can see it on your page for designing without using preview (it will fade a bit though).
Go to the HTML tab, and in Add HTML select HTML Object. You can use this to select a color and put it after the number sign in the code below like this:#ffffff Next Image Border & Colored Division Generator This will make the code to paste in for you
Select your border color and background color and click the button. I made a small program that will make the web studio code for you. If you just want a colored Division and no border Use the paste in code above and put your color in as shown, it has no border.
Hover over this HTML Object
...we can also use it with background image tiles Since an HTML Object is a division...
Go to the HTML tab, and in Add HTML select HTML Object.
Attach & Change Image Name
Once you have the code in your HTML Object to get it to use your image you need to ATTACH it to the HTML object (see instruction page) and change yourimagename.jpg The Size of the Background Image Division
The image will tile to the division so all you need to do is stretch the HTML object Adding a Shadow to the Image Division Shadows can be seen by all browsers except IE8 and under
This uses css3 "box shadow" box-shadow: 3px 3px 4px black;
Why use a division with a tiled background image?
A colored background division the width of the browser screen
Since web studio uses a table for the contents and centers that for us, to have a division Where you place the code
Select the HTML TAB and in "Insert Page HTML" we will use "Start of BODY" What the code means so you can make it do what you want
height:60px; The height of the division you could use 100px for example
Save this image for the division with a tiled background image that is 100% wide A division background image the width of the browser screen
This one we will combine what we learned above. We'll use a 100% wide division then Where you place the code
Select the HTML TAB and in "Insert Page HTML" we will use "Start of BODY" Positioning & Attaching the division (image)
You can change the image name and it is positioned the same as the colored division where top:100px; is the distance down and z-index:100; is back to front
A TIP: In web studio to see |