English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How do you get two divs superimposed on each other? At least one has a background image defined. Also, how do I make it so that the background in one div continues to scroll vertically in proportion to the text on the page? I want it 0px for the bottom and top margins, but I can't seem to do that? Any help would be appreciated (and sarcastic remarks will not be, FYI).

2007-03-13 11:46:24 · 2 answers · asked by Sabrina . 2 in Computers & Internet Programming & Design

2 answers

For superimposition, try position: absolute and play around with z-index to lay one on top of the other. Use a containing div to hold the background image, if I understand you correctly. For top and bottom margin problems, if you're running into problems, you may have to, at times, mess around with *negative* margin amounts. With all this messing around, though, be sure to mess around on *several* browsers, as the various browsers seem to get mean-spirited in their separate ways! (Especially yer ol' pal IE)

2007-03-13 12:57:51 · answer #1 · answered by fjpoblam 7 · 0 0

you will locate divs on each internet site. information superhighway web content are often produced from HTML and CSS. The CSS is the form that governs how the website seems. CSS works by ability of employing regulations to the tags (that sounds like div). Div is merely one form of tag, and this is used to team issues at the same time, as an occasion on a myspace web site.

2016-12-14 18:18:39 · answer #2 · answered by ? 4 · 0 0

fedest.com, questions and answers