View Full Version : Questions on Background Positioning and Text Alignment


Japan Queen
01-29-2003, 04:25 AM
I am sorry if any of this stuff has already been brought up, but I here are my questions.

Background Positioning
I seem to vaguely remember Lissa having a tutorial on this, but I can't seem to find it anywhere! I am sorry if I am being scatterbrained here, but yeah. I would like to take my background image, which I want to position to the left and make it stay there. I normally just make a 1024 width wise img and use it as a background, but I just realized you can't do that for a right aligned background. Do you know how to make it so that I can take an image, and align it repeating to the right edge of the page and have the background a color, too. Like the background is one color and the image is the background and ... you know? If you need it more specific, I will try and draw a picture for you.

Text Alignment
I was wondering if there was a way for me to align the text to the right in a div layer and be able to have it stop a certain number of pixels away from the right side and not have to put it in the left side or something. I want it to be viewable in 800 as well as 1024 and I don't know exactly how to do it. Again, if you don't understand I will draw a picture out to help you get the gist of it.

Thank you in advance for helping me with my website! Sayounara!

alcaseltzerboy
01-29-2003, 04:02 PM
I;d try asking before the user comes to the page what size browser the have and then making 2 copies of each page, one for 800X, the other for 1024X.

starlet
01-29-2003, 05:25 PM
Background positioning stuff can all be found on the CSS page
http://www.lissaexplains.com/css.shtml

Second question im not quite following, but you can align the contents of your div to the right...

<DIV id="name" style="position: absolute; top: 100px; width:100px; left: 100px;" align=right>Your HTML </DIV>

or if you want the whole thing on the right just take out the left tag and change it to right...

<DIV id="name" style="position: absolute; top: 100px; width:100px; right: 100px;" align=left>Your HTML </DIV>

Japan Queen
01-29-2003, 07:28 PM
Thank you so much for telling me how to do this! YAY! You answered my other question just fine, I wanted to get it to the right of the page instead of the left! Thanks! *jumps for joy!*