This is a discussion on "CSS layers and database content" within the Web Page Design section. This forum, and the thread "CSS layers and database content are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS layers and database content
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
CSS layers and database content
Hello all,
I have a webpage that displays a list of items from a database. I have a layer which will hold recordset content (contlayer) and a layer that will have a copyright bar (copylayer). The problem is, if there is a large list of data the contlayer will expand over or under the copylayer. I dont want this to happen. I want there to be a gap between the contlayer and the copylayer no matter how long the contlayer gets. I know layers have an overflow function but i do not want to use that function. Can anyone help me. below is a diagram that might explain 1) ------------- | ---------- | | Cont layer | | ---------- | | -----------| ------------- Gap ------------- | Copylayer | ------------ 2) ------------- | --------- | | Cont layer | | ---------- | | ------- -- | | ---------- | | ---------- | | ---------- | | ---------- | | ------- -- | | ---------- | | ---------- | | ---------- | | ---------- | | ------- -- | ------------ Gap ------------- | Copylayer | ------------- Last edited by sssaudddahmed; Jan 8th, 2006 at 05:43. |
|
|
|
#2
|
|||
|
|||
|
Re: CSS layers and database content
Maybe I'm confused here, but why are you using layers? Wouldn't simple <div> be what you want? Just give the copyright div a
|
|
#3
|
||||
|
||||
|
Re: CSS layers and database content
Post your html and css code, we'll fix it.
|
|
#4
|
|||
|
|||
|
Re: CSS layers and database content
thanks for the responses,
here is the CSS code for the page:
Last edited by benbacardi; Jan 10th, 2006 at 17:09. |
|
#5
|
|||
|
|||
|
Re: CSS layers and database content
Your botbar - you are using absolute position on this as well as all the other layers. Using this - the layer will appear at from the left: 5px and from the top: 800px.
You should consider using relative and let the layer fall where the browser(s) place them. This should help you out somewhat and then as SweetLou recommended, add padding perhaps to the botbar and see if that might help you out. |
|
#6
|
|||
|
|||
|
Re: CSS layers and database content
i tried making making the botbar a relative layer and positioned it at the same place as the previous absolute botbar layer. The same problem is still occuring. I even added the padding both on the contlayer and botbar layer still nothing. Furthermore , i switched the Z-indexs on the both layers several times as well in case this was the problem but no solution was found.
is there a CSS function that does the following: if a layer horizontaly expands to a point where it contacts with a layer below it, the lower layer should move down as well. instead of the lower layer gettting overlapped be the expanding layer above. anymore solutions |
|
#7
|
|||
|
|||
|
Re: CSS layers and database content
Horizontally expand down? The way I said above will work, but you are using layers and absolute positioning, so no there isn't. If you don't want the div's to overlap, then why are you using layers?
|
![]() |
| Tags |
| css, layers, database, content |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expandable Content Script (Swtich Content) | Matc | JavaScript Forum | 0 | Apr 8th, 2008 10:53 |
| Content Placement + Content Dividing | josephman1988 | Website Planning | 2 | Jan 22nd, 2008 05:02 |
| XML Code for transfering data from one SQL Server Database to another database | plolla | Other Programming Languages | 1 | Aug 3rd, 2006 18:37 |
| Layers | GCrame5832 | Web Page Design | 6 | Dec 31st, 2005 21:42 |
| Using layers in CSS | jwalker80 | Web Page Design | 3 | Dec 21st, 2005 14:08 |