PDA

View Full Version : Requiring alittle help with some aligning of images.



Skycutt
07-09-2009, 12:35 PM
Ohai, i'm learning to code in dynamic pages, so a website would work in all resolutions or even just the most popular. Anyway. I'm unable to figure out a method of aligning the title (Hello, I'm Patrick image) to the correct position, i've attached 2 screen shots to help explain what i'm trying to say. I'd also really appreciate it if you could explain how you've done it,



Presently:
http://i26.tinypic.com/2448ck5.jpg
How I'd like it:
http://i32.tinypic.com/2l2osg.jpg


I've got a feeling I've gotta use a different type of positioning like relative or something along the lines of that, but then again I could be wrong.

Jamesy
07-09-2009, 04:10 PM
if the black bit is a set height then you can use position absolute on the image.

http://www.zachgraeve.com/2006/10/01/center-abosulte-position-div/

and then top:<height of black bit>.

If the black bit isn't set then I am not sure off the top of my head.

VirtualG
07-09-2009, 10:04 PM
Dont you already have it like that? I like the page, btw, but doesn't it need a little... Content?

pepsi
08-09-2009, 02:13 AM
Add margins to that black bit's CSS.

Skycutt
08-09-2009, 05:57 AM
if the black bit is a set height then you can use position absolute on the image.

http://www.zachgraeve.com/2006/10/01/center-abosulte-position-div/

and then top:<height of black bit>.

If the black bit isn't set then I am not sure off the top of my head.
It's using a percentage, as isn't that the only way to allow the site be viewed correctly with most resolutions?


Dont you already have it like that? I like the page, btw, but doesn't it need a little... Content?
Yes, the one I showed you was just a basic maintenance page, here's what i'm trying to code now. http://i28.tinypic.com/2iijtjl.jpg


Add margins to that black bit's CSS.
Wouldn't that throw off the footer? Anyway, i'll try it :-)

Want to hide these adverts? Register an account for free!