Please can someone help me fix this code? Its doesn't seem to make the div you want to stick to the top of the page: the code is shown below.
I need help, what is the problem with the code below:
<! DOCTYPE html >
< html >
< head >
< title > < / title >
< style >
*{
margin: 0;
padding: 0;
}
{#sticky}
Width: 600px;
background-color: #000;
color: #fff;
do-size: 2em;
border-radius: 0.5ex;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 3px;
}
{#sticky.stick}
position: fixed;
top: 0;
z index: 10000;
}
{#sticky-anchor}
height: 0;
}
{#wrapper}
Width: 600px;
Auto margin: 0;
padding: 0;
}
#header {}
Width: 600px;
height: 140px;
Auto margin: 0;
}
#content {}
Display: block;
height: 800px;
Width: 600px;
background-color: pink;
}
< / style >
< / head >
< body >
< script >
function sticky_relocate() {}
var window_top = $(window) .scrollTop ();
var div_top is $('#sticky-anchor').offset () .top;.
If (window_top > div_top) {}
$('#sticky').addClass ('stick');
} else {}
$('#sticky').removeClass ('stick');
}
}
{$(function()}
$(window) .scroll (sticky_relocate);
sticky_relocate();
});
< /script >
< div id = 'wrapper' >
< div id = "header" > < welcome h1 > < / h1 > < / div >
< div id = "post-it-anchor" > < / div >
< div id = "sticky" > it will stay at the top of the page < / div >
< div id = "content" > < / div >
< / div >
< / body >
< / html >
Nothing wrong (other than a few problems regarding coding practices). You simply need to link to the top of the jQuery library.
Tags: Dreamweaver
Similar Questions
-
cannot send sms longer for android users. Can someone help me fix this please?
I was able to send texts of sms of my Mac book Pro for some time. But now since 2 months, I can not do. I could changed some setting accidentally, but not sure how to fix it. Can someone please?
It seems that if the link to your iPhone was broken. Make sure your iPhone and Mac are registered in the same Apple ID On your iPhone, go to settings > Messages > Test Message Forwarding, select your computer and follow the instructions.
-
I can't sign into windows live messenger, I get the message that windows live messnger is unavailable currently try again later and also I get the error code 80048820, can someone help me solve this problem.
Hello jabeena, welcome.
This section would apply in fact to the Windows Live programs, but we'll see what we can do to help out you.
I recommend to try this first:
1. disable any antivirus software or security, you have running on your computer. Looking for software to disable that contains a firewall.
2. click on START
3. Type "cmd" (without the quotes). Right-click on the result at the top of the menu START and select 'run as administrator '.
4 type the following and press enterRegsvr32 softpub.dll wintrust.dll initpki.dll
netsh winsock reset
Thank you! Ryan Thieman
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Good day, I get an error code 205 when I try to download adobe creative cloud desktop app, can someone help me solve this problem? Keep in mind I am not very technical, (smile).
Hi Djseva,
I think the error you encounter can be solved easily by following a few simple steps from the document below:
Error downloading creative cloud applications
If the document does not resolve the problem for you, don't hesitate to go back to Support Adobe & we will be more then happy to help you further by the following link below:
See you soon!
-
I have downloaded Adobe DW but it can ' t use, can someone help?
Concerning
Stéphane
-
Please can someone help, need password CNU9497P2C
I have the same problem and its driving me crazy... I need the BIOS password because I can't access to this
[number of Series edited by Moderator]
Please can someone help, need password
HP MINI CQ10
Sweb try.
e9lovox27e
3rd letter tiny L.
4th and 6th letter lowercase o.
Use this code to go into the BIOS.
Disable all passwords that are enabled.
If demand for CURRENT password using this code.
Request NEW password just press ENTER.
If asked to hit just to CHECK password to enter.
Save and exit.
REO
I must inform you that these services are not endorsed by HP, and that HP is not responsible for any damages that may occur to your system using these services. Please be aware that you do so at your own risk.
-
Please can someone help me for a long time out of the payment itun
Please can someone help me for a long time out of the payment of itun, I lost my phone.
This is my information
****
****
Thank you
< personal information under the direction of the host >
OK so tell me first your reason! It of your personal account, why do you give?
-
WindowsUpdate_80246007 - cannot install Service Pack 2 for Vista. Can someone help me with this error message? What di I do to solve it?
WindowsUpdate_80246007 - cannot install Service Pack 2 for Vista. Can someone help me with this error message? What di I do to solve it?
2 forums: you can go:
1 Windows Vista IT Pro forum, section of Windows Vista service packs:
Section of Windows Vista service packs:2. Windows Update section:
http://social.answers.Microsoft.com/forums/en-us/vistawu/threadsFor the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.
-
Please can someone help me on how toedit calculation result to the point
Please can someone help me on how toedit calculation result to the point
Can you post an example page upward on the hosted site for Oracle? Apex. Oracle.com (you need a workspace).
So to repeat what you have posted:
You have a page with 3 items P1_N1, P1_N2 and P1_SOM... You want to P1_N1 and P1_N2 to be text boxes that accept input, and when you enter the values you want the sum of these values to be stored in P1_SOM, correct?
Take a look at this page: http://glassfish1.revion.com/apex/f?p=227:1:12047078745989:
I will explain further if you think you want it... Use any value for a connection. Enter a number in N1 and click in the field of N2, the display option takes the sum of the two numbers when you let one of the fields...
Thank you
Tony Miller
Software LuvMuffin
Ruckersville, WILL -
I have an Adobe Creative account and my payments come out every month; However, I am unable to connect with my new account or access programs I have installed; It only let's login me under my old account. Can someone help me solve this problem?
Hello
I see that you have an adobe account with the same email with forums, however, I don't see no subscription under this account.
If you can't change the email during indexing, see the steps below:
The OOBE and rename it OOBE.old and then try to connect with the correct ID:
Location: -.
Windows C: \ directory users\ user account-App data-local-adobe \oobe
MAC: Go / go to the folder / Application support / Adobe / oobe
If nothing helps, please contact adobe support:
-
HelloThe receipt number in double in RCV_shipment_headers for org even there? Can someone help me on this issue?
Kind regards
Hello
Please see metalink note below, it will help you to solve the problem.
Duplicate numbers exist in the RCV_SHIPMENT_HEADERS Table for same reception Org (Receipt_Num even, different Shipment_Header_id with the same Ship_To_Org_Id) (Doc ID 1464290.1)
-
Hi I find a problem with my iPad 2 Air... I delete almost everything about him and he always tells me almost full storage! can someone help me on this problem pls thank you
Hello
Try a reboot press & hold the power button / stop & menu button
Hold both down until you see the Apple logo.
What is your ipad 16g / 32g or higher?
See you soon
Brian
-
Please can someone help me with simple instructions on how to play and run and old game back?
I can't work for the life of me how to play the Pandora Directive, an old game in windows 7.
I tried the compatibility program, but he has a problem with Vesa?
Please can someone help?
Thank you
Try to install the 3rd party program dosbox. http://www.dosbox.com/ it will emulate a complete enviroiment of ms - dos for the game. If you're playing the support.http://www.gog.com/en/support/ here contact gog.com edition
-
original title: windows dates
on my computer windows vista home basic, is Drive - D were all my windows updates are stored. I do not stor photos or other long-term files on my computer.
I ' am up to 22 gigabytes of 69.5 gigabits on drive D. Can someone help me with this problem so I don't run out of space.
Also all update my windows go back as far as the year 2008. Note-windows update are the only element which appear on the D drive and also when I backup windows is were I notice less space on this drive. Is there something I can do so I don't run out of space on this drive?
could someone help me with this problem.I have found, do not delete the old windows updates.
they could corrupt your entire system. -
I have a Dell Inspiron Mini Windows 7 starter from a pawn shop and it has the previous owner on this subject and I can not log on because I need there password. Can someone help me with this?
The only safe option is to perform a factory restore. If you do not, then you are likely to be confronted with a machine that is seriously infected or was hacked. Have a look here for instructions:
http://support.Dell.com/support/topics/global.aspx/support/KCS/document?c=us&l=en&s=Gen&docid=DSN_336966&isLegacy=true
Maybe you are looking for
-
Why I can't download apps or update
Why can not download or update all apps?
-
Increase video memory on Satellite A300 - 20H
Hello world.I need to increase the video memory, but I have not found where I can do. (It was written that on this model can be up to 1 GB of video memory (3.25 full, but now because of simple calcularion is about 128.)) There is no option in the BIO
-
I get a message saying that live com updated engine module has stopped working. What is and how to repair or fix this problem
-
Migrating Sharepoint 3.0 to Sharepoint Foundation 2013?
I am currently using sharepoint services 3.0. I use sharepoint foundations 2013. Is it possible to migrate all SharePoint services 3.0 to sharepoint Foundation 2013? Gerald
-
How can I save the changes on viewing options?
Whenever I use Acrobat Reader DC I need to change the options of visualization of 'exposure of individual page' to 'Enable scrolling. How can I save this change on viewing options?And another question: when I open the Acrobat Reader DC, a tab appears