I'm designing a sort of error message screen.
Well it's not a screen...its just a <div> that displays the error messages and allows the user to close it (or drag it around etc.)
The title essential has two components:
- a link that contains a small image followed by the text "Error"
- a button that "closes" the screen
My problem is that when I changed the button into a button (as apposed to the link that I had it before) the text "Error" is squished over next to the image.
When the close button was simply a link it displayed properly:
the image was on the right (floated there), the close link on the left (floated there), and the "Error" text was displayed in the middle.
Is there anything I'm doing wrong?
[code=html]
<div id="PNL_ErrorMe ssages" style="position :absolute;top:2 0;left:20;width :350px;height:a uto;padding:5px 5px 5px 5px;visibility: visible;">
<div style="backgrou nd-color:#C00000; color:White; width:100%; border:solid 2px black; border-bottom:none; text-align:center; padding: 3px 0px 3px 0px;">
<input name="BTN_Close Error" type="button" id="BTN_CloseEr ror" style="float:ri ght; padding-right:3px;" value="x" OnClick="javasc ript:CloseError Window('PNL_Err orMessages');" />
<a onclick="return false;" id="LBTN_Error " href="javascrip t:__doPostBack( 'LBTN_Error','' )" style="color:Wh ite;;">
<img id="img_colapse Error" src="../images/collapse.jpg" style="border-width:0px;float :left; padding-left:3px;" />
Error</a>
</div>
<div id="PNL_ErrorMe ssageContent" style="backgrou nd-color:White; border:solid 2px black; width:100%; color:#C00000;" >
<span id="LBL_Error"> Error Message:<br />My error Messages</span>
</div>
</div>
[/code]
Thanks!
-LilOlMe
Well it's not a screen...its just a <div> that displays the error messages and allows the user to close it (or drag it around etc.)
The title essential has two components:
- a link that contains a small image followed by the text "Error"
- a button that "closes" the screen
My problem is that when I changed the button into a button (as apposed to the link that I had it before) the text "Error" is squished over next to the image.
When the close button was simply a link it displayed properly:
the image was on the right (floated there), the close link on the left (floated there), and the "Error" text was displayed in the middle.
Is there anything I'm doing wrong?
[code=html]
<div id="PNL_ErrorMe ssages" style="position :absolute;top:2 0;left:20;width :350px;height:a uto;padding:5px 5px 5px 5px;visibility: visible;">
<div style="backgrou nd-color:#C00000; color:White; width:100%; border:solid 2px black; border-bottom:none; text-align:center; padding: 3px 0px 3px 0px;">
<input name="BTN_Close Error" type="button" id="BTN_CloseEr ror" style="float:ri ght; padding-right:3px;" value="x" OnClick="javasc ript:CloseError Window('PNL_Err orMessages');" />
<a onclick="return false;" id="LBTN_Error " href="javascrip t:__doPostBack( 'LBTN_Error','' )" style="color:Wh ite;;">
<img id="img_colapse Error" src="../images/collapse.jpg" style="border-width:0px;float :left; padding-left:3px;" />
Error</a>
</div>
<div id="PNL_ErrorMe ssageContent" style="backgrou nd-color:White; border:solid 2px black; width:100%; color:#C00000;" >
<span id="LBL_Error"> Error Message:<br />My error Messages</span>
</div>
</div>
[/code]
Thanks!
-LilOlMe
Isn't this what you meant?
Comment