|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
Thanks Dusty. That's looks to be exactly what I'm looking for.
![]() |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS, JS pulldown menu and centering issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|