CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 28th, 2004, 11:19 AM
Syngin Syngin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Windsor Ontario
Posts: 155 Syngin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 6 m 36 sec
Reputation Power: 8
Send a message via MSN to Syngin
CSS, JS pulldown menu and centering issue

Hello,

I currently have a site (left aligned) that has its own Javascript pulldown menu. Its is pretty standard with the sub-menu's being in their own layer and are shown on mouseover.

My problem is that these sub-menus are currently set at an absolute left position (CSS) but, if centered, will appear in different places at different resolutions.

Does anyone know if its possible to anchor a layer to a point from something on a different z-index?

I did a search on the forums here and found a similar question but no responses.

Thanks guys!
__________________
Where are we going and why am I in this handbasket?

Reply With Quote
  #2  
Old April 28th, 2004, 08:01 PM
dustyreagan's Avatar
dustyreagan dustyreagan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Austin
Posts: 126 dustyreagan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 40 m 3 sec
Reputation Power: 5
Woohoo, I just wrote a tutorial on this very question!
Check it out here.

Tell me what you think. I just finished it, and you'll probably be the first person to read it.

Let me know if it was helpful or not!
__________________
DustyReagan.com

Reply With Quote
  #3  
Old April 28th, 2004, 09:29 PM
Syngin Syngin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2001
Location: Windsor Ontario
Posts: 155 Syngin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 6 m 36 sec
Reputation Power: 8
Send a message via MSN to Syngin
Thanks Dusty. That's looks to be exactly what I'm looking for.

Reply With Quote
  #4  
Old April 29th, 2004, 10:31 AM
mayflower mayflower is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 46 mayflower User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 11 sec
Reputation Power: 5
Need some help in the layout

Hi Dusty:

I was looking your site and it is nice and simple. I am trying to get something similar in the sense that I want to be able to bring the contents in the center column when the user clicks on the menu button, keeping the menu visible. The one I have opens in a new window. How can I target the link to open in the center without using frames.
HTML code:

Code:
<html>
<head>
<title> Testing</title>
<link rel="stylesheet" type="text/css" href="./test.css">

<script language="javascript">
new Image().src="./QTimages/image2b.jpg";
</script>

</head>

<body>

<div id="header">

<img src="../QTimages/banner8.jpg"
 width="300" height="50" alt="header image">
</div>

<div id="menu">
<br><br><br><br><br><br><br>
<a href="./images.html"><img name="imagebutton" id="imagebutton" src="../QTimages/image2.jpg" onMouseOver="document.images['imagebutton'].src='../QTimages/image2b.jpg'" onMouseOut="document.images['imagebutton'].src='../QTimages/image2.jpg'" border="0"background="transparent"></a>
</div>

<div id="content">
<h1>Welcome to my site...</h1>
</div>

<div id="thumbnail">
Testing
</div>

</body>
</html>


CSS code:

Code:
#header { position: absolute; top: 0px; left: 350px; }
#menu {  position: absolute; top: 0px; left: 10px;
  width: 0px; height: 100%;}


#content { position: relative; top: 60px; left: 180px;
  width: 80%; height: 100%; background-color: #FFFAAA;
  color: #000EED"}

#thumbnail { position: absolute; top:50px; right:0px;
  height: 100%;
  background-image: url("../QTimages/background.jpg");
background-repeat: repeat-y
z-index: 3;
}



What I need to do is to have a 3 column design, left column should contain the navigation and the center main content. When the user clicks on the navigation boutton it should bring a set of thumnails of images in the right column. And clicking on any thumbnail should bring a larger image and detail of that image in the center column. I could do this using frames but I want to avoid using frames. I never used CSS before and read lot about positioning layers but couldn't quite figure out how I can target the links to open in the same page as I wanted. Thanks for any help.

mayflower

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS, JS pulldown menu and centering issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT