Help with this div - can I overlap divs?
Hello there, I used the search function to find an answer to this, but got nothing concrete so thought I should make this thread
My problem is shown in the screenshots below. I created a div id for the banner, a div id for the button "home". There is a Div ID for the stuff below, and that stuff is put into div classes
My problem is, I want to put that home button over the gre banner (and other buttons). When I try shifting the button over the banner, instead of shifting over the banner, it shifts the banner away and just pushes it. The screen shot is below showing the before and after, as well as the css:
[img]http://i1006.photobucket.com/albums/af186/RC20087765/Fig1designview.jpg?t=1292783483[/img]
[img]http://i1006.photobucket.com/albums/af186/RC20087765/Fig1csscode.jpg?t=1292783852[/img]
^^ the css for that. The name of the button is "home" and it is a DIV ID
This is what happens when I changes the margin left to 80pixes instead of 50 pixels (i.e. when i tried moving it to the right)
[img]http://i1006.photobucket.com/albums/af186/RC20087765/fig2designview.jpg?t=1292783939[/img]
All I want to do is place that home button on the grey banner! And later on, I will put some other buttons up there, but for now thats what I want to do
If someone can just tell me how to put a div over another div, I would be so grateful! Thanks guys.
Yes you can place one div over another div by using z-indexing (giving the <div> a stacking order). BUT, z-indexing only works with <div>s that have a declared position, like position:absolute (or relative). z-indexing and declared position have to be used together.
From and old post:
One more thing about positioning. z-indexing only works with elements that have a declare position like absolute or relative, and how that element reacts to a declare position will depend on whether or not it's parent element also has a declare position.
So
Code:
#flash {
z-index:5;
will not work without ALSO giving it a declare position.
But the actual display of #flash will very depending on whether or not it's parent container (<div>) also has a declared position.
That is, if it's parent container DOES NOT also have a declared position, the child <div> will do 1 of 2 things.
If position:relative, it will position as desired but space will be left as though that element was still in the natural flow. So you may move the 500 X 100 element down and over, but a 500 X 100 space will be left, as though it was still there.
If position:absolute, child is positioned relative to browser window and that position does not change even if window contracts or expands.
So be sure to give a declared position to both the parent and the child <div>.
Example page using declared positions and z-indexing to sandwich Flash between 2 layers of text:
http://www.cidigitalmedia.com/tutorials/flash_div.html
View the source code or copy it and practice by changing z-index and positions.
Maybe this will help clear up any misunderstanding you have about declared positioning as well as the use of z-indexing:
More info here:
http://www.w3schools.com/css/pr_pos_z-index.asp
Best of luck to ya!
Adninjastrator
Similar Messages
-
Please credit my account.
This is not Apple. This is a forum for users to help other users. Nobody here can credit your account.
-
Need help with this site (can't enter sweepstakes)
Does anyone have any idea why the sweepstakes entry
form and sweepstakes rules page on this site:
Disney Honda
Sweepstakes
http://disney.go.com/features/honda_dreams/
will load just fine on my boyfriend's computer but why I try
I get the following message:
"Oops! Unable to connect to server. Please try again later."
We both are using Windows XP SP2, IE6, Flash Player 9,0,16,0.
I have no idea what the problem could be. It is very frustrating.
Any help would be appreciated. Thanks!!We started by creating a movie clip symbol. This put in the symbol-editing mode. We did all the work in that mode. I JUST found that once I exited this mode that the SWAP button appreared. I'm going back over the lesson to see if I missed where we exited the symbol-editing mode.
-
my calendar will no longer let me add new event or delete them, it comes up with an error saying "cannot save event, no end date set" or "event does not belong to that event store". can anyone help with this?
Hi,
To configure your ODBC DataSource, go to Control Panel ---> DataSources(ODBC) (If you are in a Windows environment).
Select the tab System DSN. If you have not added your data source, then do so by clicking on the Add button. If you have added the datasource, click on the Configure button to configure it.
Give the datasource name, then the database name.
You have to give the hostname, service name and server name. I guess, in most cases, the datasource name and host name will be the same, service name and server name will be the same. If you are using TCP/IP, the protocol will be onsoctcp.
There will be a file named Services under C:\WINNT\system32\drivers\etc where you have to give the port number for accessing this server.
It will be like this <service name> <portnumber>/tcp
Hope this helps...
best wishes,
Nish -
My iPod touch was stolen and recovered. I can use my Apple id for this site but the theif changed the Apple id needed to update apps etc and I do not know how to delete his acct. Any help with this will be greatly appreciate
If the thief enabled activation lock on the device, then there is nothing that can be done. Only the password for the Apple ID that it is locked with can disable activation lock.
-
Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?
The figures you mention only make sense on your intranet. Are you still using the same wireless router. The verizon one is somewhat limited as far as max wireless-n performace. For one thing it only has a 2.4 radio. I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.
-
I'm using my iPod and an Epson XP-810 printer to print pages from websites and emails and etc.
How do I print just 1 page out of 14 pages .
I don't see any settings on my iPod and can't find settings on the printer .
Can someone help with this problemGoogle show that you have to cut what you want to print and then paste it into a new app and print from that app.
http://www.ipadforums.net/new-member-introductions-site-assistance/63145-printin g-one-page-ipad-2-a.html -
Since updating to FF 8 I can no longer use Multi-row book marks, can anyone help with this issue? the one I used is here http://multirowbookmarkstoolbar.com/
Try the support site:
*http://multirowbookmarkstoolbar.com/forum
*Multirow Bookmarks Toolbar Plus: https://addons.mozilla.org/firefox/addon/multirow-bookmarks-toolbarplus/ -
My iphone 5 is not syncing with my laptop and windows 8. cant find an itunes app for my laptop. is there something i can get that will help with this?
Lbo51380 wrote:
cant find an itunes app for my laptop. is there something i can get that will help with this?
Go here -> http://www.apple.com/itunes/download/ -
I downloaded the icloud software on my computer in order to sync calenders and contacts using Windows 2007, but I keep getting an error message when trying to sync my icloud and Outlook calendars. I downloaded it for the first time a month ago and had it working but it stopped syncing, so I deinstalled the iCloud software and reinstalled, but keep getting the error message "Your setup couldn't be started because of an unexpected error. What do I do now? Can anyone help with this?
Hello easbda,
Thank you for providing the details of the calendar issue you are experiencing with your iPhone. I recommend following the steps in the section titled "Troubleshooting on Microsoft Windows (Microsoft Outlook)" in the following article to assist with syncing your calendar events between your devices:
iCloud: Troubleshooting iCloud Calendar
http://support.apple.com/kb/ts3999
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Can anyone help with this issue.... intermittent sound from apple tv
Can anyone help with this issue?..watched the trailer of a movie with sound, then downloaded and went to watch it, but no sound and this message was displayed:"an incompatible audio signal has ben received.check the output device" tv is a sharp aquos
I don't know if this will help but have you tried switching the audio output to 16-bit? On the AppleTV, click Settings, Audio & Video, Audio Output. The two choices are "auto" and "16-bit". Good luck!
-
I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?
For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
See:
http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
Be well... -
I purchased Adobe Acrobat x Pro recently and installed it, I have compatibility issues vision 2013. The adobe pdf converter plug in stays inactive despite all my efforts to activate it, I need help with this? How can i get the plug in to work with Visio 2013?
For MS Visio (any version) only the appropriate version of Acrobat *PRO* provides PDFMaker for Visio.
For Visio 2013 specifically you must have Acrobat XI Pro (updated to at least 11.0.1).
See:
http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
Be well... -
I cannot download updates to Photoshop Elements 9. I get an error message that my serial number is not recognized or eligible. Can you help with this?
Hi,
Which operating system are you running on?
What updates are you trying to download?
The last update was 9.0.3 - check by loading the editor and going to Help -> About Photoshop Elements
The last supported Camera raw is ACR 6.5 - check by loading the editor and going to Help -> About Plug-ins -> Camera Raw
Do you have a reason to update?
Brian -
I have problem with my iphone 4s my battery is not keeping charge. how can I get help with this one? it is less than a year that I purchased this cell.
I would like to know the answer to that one. I realized this was happening just after upgradeing my iOS to 6. Then when I looked up my purchase date, I was about 5 days past my one year warranty. So I'm dead in the water. Apple will replace the battery, but it will be about $80+. I took it to the Apple store, and they checked a bunch of stuff, but said that it seemed ok. I'm debating getting a battery for a more reasonable price off of ebay. But if it's the iOS thats draining the battery, then I'm not going to be able to help it. I wish I knew a better way to tell if its the battery, the phone, or the iOS.
Maybe you are looking for
-
I want to be tactful about this - what would be the best way to characterize your new program guide - Sick Joke? In what sense is it an improvement over the previous one? It is in fact immeasurably WORSE. How could anyone at Verizon have signed off
-
What are your favorite backup apps?
I am looking for a simple to use backup app. I have never used a backup app with windows or Mac's before so just looking for something simple and effective. I have looked around and saw that Intego had one backup program but they mostly have security
-
S_ALR_87012357 - User Fields
Hi, I have a query wrt the transaction S_ALR_87012357 In Output Lists tab, if we select configure layout, we can select additional fields as per requirement. However, there are certain additional fields like User field 1, 2, 3.. etc.. which I guess,
-
How would i know if a certain screen contains a screen-exit?
The requirement is to add textfield and a checkbox in the additional data tab in standard transaction me21n. I already found the screen for that area where i will be adding the textfield and the checkbox. The question is, how would i know that that s
-
I cannot send emails from mail box setting (get message stmp.live.com not connected) Can send hotmail message if use internet to access hotmail sign in. did work when first set up ipad2. help?