CSS:
.carouselMainImage img
{
height: 285px;
width:98%;
margin: 3px;
padding: 6px;
}
HTML:
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 12:58 AM EDT
Just change the style sheet code of Style.css of header.
#header
{
width:100%;
height:50px;
background-color:Purple;
text-align:center;
top:0px;
z-index: 100;
position:fixed;
}
i add this line to your Style.css. it will make your div always in the top
any problem reply
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 10, 2013, 11:13 PM EDT
Can you share your complete html and css code?
Regards,
Iftikar
David SmithRank #999 · 2K reputationPosted Jul 10, 2013, 11:46 PM EDT
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 12:10 AM EDT
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 1:11 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 11, 2013, 1:16 AM EDT
http://www.w3schools.com/cssref/pr_pos_z-index.asp
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 1:17 AM EDT
Definition and Usage
The z-index property specifies the stack order of an element.An element with greater stack order is always in front of an element with a lower stack order.
Note: z-index only works on positioned elements (position:absolute, position:relative, or position:fixed).
http://www.w3schools.com/cssref/pr_pos_z-index.asp
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 5:11 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 7:26 AM EDT
http://www.w3schools.com/cssref/tryit.asp?filename=trycss_zindex
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 8:19 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 8:46 AM EDT
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 9:12 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 9:44 AM EDT
http://www.vanseodesign.com/css/css-stack-z-index/
David SmithRank #999 · 2K reputationPosted Jul 11, 2013, 12:41 PM EDT