Click here to Skip to main content
15,891,136 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Write to CSV in C# asp.net Pin
LloydA11124-May-09 14:53
LloydA11124-May-09 14:53 
QuestionDynamic resizing of Google Map object Pin
Roy Barkas17-May-09 22:57
Roy Barkas17-May-09 22:57 
QuestionAccessing the value of drop down box Pin
aartib17-May-09 21:32
aartib17-May-09 21:32 
AnswerRe: Accessing the value of drop down box Pin
Yusuf18-May-09 7:24
Yusuf18-May-09 7:24 
GeneralEmbedding calender in my web page... Pin
Bithin A17-May-09 21:12
Bithin A17-May-09 21:12 
GeneralextJS Combo Problem Pin
Brady Kelly17-May-09 1:31
Brady Kelly17-May-09 1:31 
QuestionSSL cert vendor, how'd you choose? Pin
devvvy16-May-09 7:23
devvvy16-May-09 7:23 
QuestionCSS Question, Can't figure out how to do this [modified] Pin
shawndeprey15-May-09 9:35
shawndeprey15-May-09 9:35 
Basically I am trying to make a sort of conditional statement in CSS. I am making A div containing a form pop up through clicking on a link. The link is below to show that I am just using it as a button to make the form pop up through css.

<a href="#" class="cnb"&gt;Create New Blog
<div class="hide">
<form action="#" method="post">
OMITTED FORM FOR SPACE
</form>
</div


The CSS is


.hide {
display:none;
}

a.cnb:active .hide {
display:block;
position:absolute;
top:0px;
bottom:0px;
left:0px;
right:0px;
z-index:1000;
color:#000000;
}

a.cnb .hide:hover {
display:block;
position:absolute;
top:0px;
bottom:0px;
left:0px;
right:0px;
z-index:1000;
color:#000000;
}


So basically the div is a link, and when you hover over the div, which is the size of the web browser, it stays there. Problem is<b>When you scroll out of the web window the div disapears because you are no longer hovering over it.</b>

My first question is, <b>Can I do this without the use of a link and just make the div pop up so that it wont disapear when I scroll off the web browser window.</b>

My Second Question is, <b>Can I do some kind of conditional statement is css like the one below I was trying. Basically I am trying to say in the css that "IF .hide is display:block THEN make it these styles." If I can make a condition like this it would solve the problem.</b>


a.cnb .hide:"display:block" {
display:block;
position:absolute;
top:0px;
bottom:0px;
left:0px;
right:0px;
z-index:1000;
color:#000000;
}

Perhaps there is a way to do

a.cnb .hide:active OR :focus??? I thies this but is doesn't work.


I have been working on this forever and cant figure it out. Any help is useful. THANK YOU!!!

modified on Friday, May 15, 2009 3:41 PM

AnswerRe: CSS Question, Can't figure out how to do this Pin
shawndeprey15-May-09 13:49
shawndeprey15-May-09 13:49 
GeneralRe: CSS Question, Can't figure out how to do this Pin
Marc Firth17-May-09 23:33
Marc Firth17-May-09 23:33 
QuestionPrompt user to save file when clicking on link to download Pin
sito4215-May-09 9:09
sito4215-May-09 9:09 
AnswerRe: Prompt user to save file when clicking on link to download Pin
Marc Firth17-May-09 23:27
Marc Firth17-May-09 23:27 
AnswerRe: Prompt user to save file when clicking on link to download Pin
Marc Firth17-May-09 23:47
Marc Firth17-May-09 23:47 
GeneralRe: Prompt user to save file when clicking on link to download Pin
sito4218-May-09 18:28
sito4218-May-09 18:28 
QuestionHow to Add web Deplayment Setup in ASPSAjaxExe ! Pin
avon.purushottam15-May-09 3:26
avon.purushottam15-May-09 3:26 
Questioncontent management editor Pin
jobitha15-May-09 1:02
jobitha15-May-09 1:02 
AnswerRe: content management editor Pin
Marc Firth17-May-09 23:50
Marc Firth17-May-09 23:50 
QuestionPHP: how to display the image after upload? Pin
Member 323010714-May-09 17:53
Member 323010714-May-09 17:53 
AnswerRe: PHP: how to display the image after upload? Pin
Marc Firth17-May-09 23:22
Marc Firth17-May-09 23:22 
QuestionEJB help Pin
crain198114-May-09 8:31
crain198114-May-09 8:31 
AnswerRe: EJB help Pin
Member 194340425-Nov-09 18:42
Member 194340425-Nov-09 18:42 
QuestionJavascript function works only the first time it's called Pin
Bjohnson3314-May-09 8:07
Bjohnson3314-May-09 8:07 
AnswerRe: Javascript function works only the first time it's called Pin
Yusuf14-May-09 8:17
Yusuf14-May-09 8:17 
GeneralRe: Javascript function works only the first time it's called Pin
Bjohnson3314-May-09 9:50
Bjohnson3314-May-09 9:50 
QuestionRE: Quick Search [modified] Pin
CHANDUA14-May-09 1:53
CHANDUA14-May-09 1:53 

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.