Click here to Skip to main content
15,887,214 members
Home / Discussions / Web Development
   

Web Development

 
QuestionData missing While importing Text file (.txt) to sql server 2008 using ASP Pin
priyaahh9-Aug-11 20:12
priyaahh9-Aug-11 20:12 
QuestionProblem with CSS in Safari, Firefox, Chrome etc [modified] Pin
Payal_e_m9-Aug-11 16:17
Payal_e_m9-Aug-11 16:17 
AnswerRe: Problem with CSS in Safari, Firefox, Chrome etc Pin
Ed Nutting23-Aug-11 0:17
Ed Nutting23-Aug-11 0:17 
QuestionMicrosoft Web Dev Tools Pin
G-Tek8-Aug-11 4:15
G-Tek8-Aug-11 4:15 
AnswerRe: Microsoft Web Dev Tools Pin
Not Active8-Aug-11 4:59
mentorNot Active8-Aug-11 4:59 
QuestionHow can I include an arrow graphic on a selected menu item? Pin
Brady Kelly5-Aug-11 3:25
Brady Kelly5-Aug-11 3:25 
AnswerRe: How can I include an arrow graphic on a selected menu item? Pin
GenJerDan5-Aug-11 3:56
GenJerDan5-Aug-11 3:56 
AnswerRe: How can I include an arrow graphic on a selected menu item? Pin
enhzflep5-Aug-11 11:26
enhzflep5-Aug-11 11:26 
I hadn't realized before, though it appears that you can have several background images for a single html element. So, with this in mind and the css pseudo element :hover, this effect can be acheived just using css!

I made 3 images.
downArrow.png - 18x9 pixels, copied from linked image, white pixels made transparent
unselectedBG.png - 1x53pixels, top44 pixels=gradient, bottom 9 pixels transparent
selectedBG.png - as above with different gradient

The trick is to ensure that your element will be high enough to hold the arrow below your content.
Since I don't know of a way to do this, I've simply made the elements 9 pixels higher than the background gradients. When I draw them, the page background color/image shows through. When I draw the down arrow, I simply position it at the very bottom of the element and about 10pixels to the right.

I've used padding to make the li elements high enough, there's bound to be a better way than this.
S.

HTML
<html>
<head>
<style>
li{
	color: white;
	background: url(unselectedbg.png);;
	padding-left: 5px;
	padding-right: 20px;
	display: inline;
	padding-top: 10px;
	padding-bottom: 23px;
}
li:hover{
	color: #7cd554;
	background: url(downArrow.png) no-repeat 10 43, url(selectedbg.png) repeat-x;
	}
</style>
</head>
<body>
	<ul>
		<li>RERPORTS AND SEARCHES</li>
		<li>HELP</li>
	</ul>
</body>
</html>

GeneralRe: How can I include an arrow graphic on a selected menu item? Pin
Brady Kelly5-Aug-11 20:27
Brady Kelly5-Aug-11 20:27 
Questionwhat does this mean in the css3 font? Pin
cjoki4-Aug-11 4:23
cjoki4-Aug-11 4:23 
AnswerRe: what does this mean in the css3 font? Pin
User 17164924-Aug-11 5:28
professionalUser 17164924-Aug-11 5:28 
GeneralRe: what does this mean in the css3 font? Pin
cjoki4-Aug-11 10:52
cjoki4-Aug-11 10:52 
GeneralRe: what does this mean in the css3 font? Pin
User 17164924-Aug-11 12:13
professionalUser 17164924-Aug-11 12:13 
GeneralRe: what does this mean in the css3 font? Pin
cjoki5-Aug-11 5:14
cjoki5-Aug-11 5:14 
QuestionContent Management System? Pin
Waqas Ahmad Abbasi3-Aug-11 20:29
Waqas Ahmad Abbasi3-Aug-11 20:29 
AnswerRe: Content Management System? Pin
SUCHIT S SHAH3-Aug-11 23:55
SUCHIT S SHAH3-Aug-11 23:55 
AnswerRe: Content Management System? Pin
Simon_Whale4-Aug-11 0:08
Simon_Whale4-Aug-11 0:08 
QuestionImg centering and music player Pin
starr0073-Aug-11 14:01
starr0073-Aug-11 14:01 
AnswerRe: Img centering and music player Pin
vbmike3-Aug-11 17:37
vbmike3-Aug-11 17:37 
GeneralRe: Img centering and music player Pin
starr0074-Aug-11 8:04
starr0074-Aug-11 8:04 
GeneralRe: Img centering and music player Pin
vbmike4-Aug-11 16:49
vbmike4-Aug-11 16:49 
GeneralRe: Img centering and music player Pin
starr0075-Aug-11 12:49
starr0075-Aug-11 12:49 
GeneralRe: Img centering and music player Pin
vbmike5-Aug-11 13:59
vbmike5-Aug-11 13:59 
GeneralRe: Img centering and music player Pin
starr0075-Aug-11 16:18
starr0075-Aug-11 16:18 
GeneralRe: Img centering and music player Pin
vbmike6-Aug-11 10:32
vbmike6-Aug-11 10:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.