Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-16-2008, 01:39 PM   PM User | #1
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
overlaying DIV over an IMG

on my site: http://www.mutecms.com/ctech/

I'd like the blue box to sit over the top of my logo image?!

thanks
jarv is offline   Reply With Quote
Old 12-16-2008, 01:53 PM   PM User | #2
AmmO
Regular Coder

 
Join Date: Jul 2008
Location: UK
Posts: 116
Thanks: 4
Thanked 0 Times in 0 Posts
AmmO is an unknown quantity at this point
I take it what you mean is that you want it so the telephone number appears just below the name of the company
AmmO is offline   Reply With Quote
Old 12-16-2008, 01:54 PM   PM User | #3
AmmO
Regular Coder

 
Join Date: Jul 2008
Location: UK
Posts: 116
Thanks: 4
Thanked 0 Times in 0 Posts
AmmO is an unknown quantity at this point
I think this is one of the times you may actually want to use absolute positioning since i assume the placement of the telphone and logo are not going to differ from page to page
AmmO is offline   Reply With Quote
Old 12-16-2008, 02:32 PM   PM User | #4
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
ok yes thanks, Posision absolute works but it is on the wrong side of the yellow bordered div?!

http://www.mutecms.com/ctech/
jarv is offline   Reply With Quote
Old 12-16-2008, 02:35 PM   PM User | #5
jerry62704
Senior Coder

 
jerry62704's Avatar
 
Join Date: Oct 2007
Location: Springfield, IL
Posts: 1,042
Thanks: 9
Thanked 81 Times in 81 Posts
jerry62704 is on a distinguished road
Once you position it, use the zindex to bring it to the front.

http://www.w3schools.com/Css/pr_pos_z-index.asp
__________________
.
.
...and gladly would he learn and gladly teach

Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls
jerry62704 is offline   Reply With Quote
Old 12-16-2008, 02:54 PM   PM User | #6
jarv
Banned

 
Join Date: Mar 2007
Posts: 1,523
Thanks: 116
Thanked 0 Times in 0 Posts
jarv can only hope to improve
I just want the telephone and emails to stay butted up against the left hand side of the yellow box, so i probably don't wnat to use position absolute as it moves about when i move my browser window??!
jarv is offline   Reply With Quote
Old 12-16-2008, 03:06 PM   PM User | #7
itsallkizza
Senior Coder

 
Join Date: Oct 2008
Location: Long Beach
Posts: 1,196
Thanks: 36
Thanked 164 Times in 164 Posts
itsallkizza will become famous soon enough
Quote:
Once you position it, use the zindex to bring it to the front.
It's better code and more cross-browser to avoid z-index and use position: absolute and semantic ordering in your html to layer your elements.

Quote:
I just want the telephone and emails to stay butted up against the left hand side of the yellow box, so i probably don't wnat to use position absolute as it moves about when i move my browser window??!
Put both in a container div with a set position and position both absolutely - then they won't move independently.
__________________
Feel free to e-mail me if I forget to respond ;)
ohsosexybrit@gmail.com
itsallkizza is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:03 PM.


Advertisement
Log in to turn off these ads.