Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-09-21 19:45:49
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
An interesting situation I have put myself into
Ok guys bare with me here. I am trying to comprehend CSS positioning a little more so I decided to create a little fancy portal page for my own personal use to try to do something that I had been wanting to do on a site of mine anyway.
Well enough yammering, here is my issue. I have a collapsible div script (I know you guys didn’t create the script or anything, but its worth asking I thought) and I am trying to use it in divs that are positioned using the tag position absolute like this…
#a1 { position: absolute; left: 25px; top: 90px; background-color: #eee; width: 400px; padding: 5px; border-bottom:1px solid #BBBBBB; border-left:1px solid #BBBBBB; border-right:1px solid #BBBBBB; border-top:1px solid #BBBBBB; }
The problem is when I click the link for the div to slide, it falls behind the other divs so I can’t see the links. Anyone a solution here? I’m I styling this wrong or…? I’m stumped here.
Offline
#2 2007-09-21 19:49:22
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Re: An interesting situation I have put myself into
ahh! position:relative seems to work for sliding the rest of the page…but is there anyway to keep the divs in place and just have the content flow over the div below is the question.
Offline
Offline
#4 2007-09-23 19:04:33
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Re: An interesting situation I have put myself into
thanks yet again Gocom. But, use that with absolute positioning and not relative though?
Offline
#5 2007-09-23 19:56:42
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Re: An interesting situation I have put myself into
ah i see now… z-index used with absolute positioning. then you have to have a higher z-index for whatever div you want to be above…
Offline