- This topic is empty.
December 19, 2008 at 5:07 pm #23805GregInChristMember
I am having trouble with an image and z index. As far as I understand you can only use z index on an object that has absolute positioning. Also as far as I know Absolute positioned object should still be relative to it’s parent container. This does not seam to be the case with the page I am working on. The logo seams to be absolute to the browser window rather then the parent divs.
The div I am trying to position had an id="header-img"
My page-wrap has a specified width and is centered on the page.Code:
The guy I am working for wants that image to overlap the menu a little bit.
What do I need to do to use the z-index but still have that header image move when the page is re-sized?
Thank a ton! May the Lord Jesus Christ show you that you need forgiveness for disobeying His commands. May he show you everlasting life though faith in Jesus Christ’s work and gift to us! Bless you in the name of the Lord.December 19, 2008 at 5:48 pm #52218GregInChristMember
To use z-index set the object ( IE. div, image, span… whatever your trying to control ) in the css to position:absolute;
Now to make this move with the parent container set the parent container to position:relative;
Bingo you should be working!
I don’t know if it will help a ton but the video I found that explained this is here…
The Lord Jesus Christ bless you! Seek the lord while you still can. We all will stand before Him on the day of judgment. You can stand before Him in sin and be damned to hell or seek and Receive Him now and he will grant to you forgiveness and everlasting life. Jesus Christ was sinless and became sin for us that whoever will believe in Him will not parish but have everlasting life. Jesus Christ is the way the truth and the life, No man comes to the father except though Him. Share the Gospel that others may escape the wrath to come. Repent and seek the Lord! Bless you!
- The forum ‘CSS’ is closed to new topics and replies.