PDA

View Full Version : Image Alignment problem



Dragonist
September 6th, 2007, 08:49 PM
I am making a website where there are two pics in the banner, one is the logo, and one is decoration. the decoration pic has CSS code telling it to move to the right, i.e:


#branchpic {
height: (whatever it is)
width: (whatever it is)
margin:(whatever it is)
position:relative;
left: 175px;
}


And this works just fine when I want to move something over to the left... But my problem lies in that I want to align my "branchpic" to the left. The code worked as a quick fix in Opera, but when I looked at the site in Camino or Safari it didn't go all the way to the left. Is there a way I can just align the image to the left? (and I have already tried: align: left;)

Thanks!

MTsoul
September 7th, 2007, 02:56 PM
How does it not align to the left? What's branchpic? The logo or the decoration?

A live example of your page would illustrate your problem better.

Dragonist
September 7th, 2007, 03:05 PM
How does it not align to the left? What's branchpic? The logo or the decoration?

A live example of your page would illustrate your problem better.

Sorry, I said the wrong thing: I wanted to align it to the right. Well, first of all it does not align to the right when I write "align: right;" in the CSS style sheet... I'm not sure why- I'm just beginning to use CSS and HTML. Branchpic is the decoration. Sorry I forgot to mention that. Anyway here is the address. I know it looks bad but this is just temporary, and I'd rather if you didn't critique the design at this point.

http://freewebs.com/phi_studios/connor/Life%20is%20Sweet

Thanks!

ratherblue
September 7th, 2007, 03:46 PM
using "text-align: right" can be used for images, as well. "text-align" refers to all the stuff inside the div

MTsoul
September 7th, 2007, 04:08 PM
Try float: right; on branchpic instead of text-align. Like ratherblue said, text-align is for contents inside a container.

Dragonist
September 7th, 2007, 05:33 PM
Yo thanks.

I hate being such a new kid here...

I wish I could change my username I'm tired of using it on forums and stuff...
Anybody know how to do this?