Jump to content

css does not work properly on chrome and safari


doforumda

Recommended Posts

hi

i have a css which works on all browsers except chrome and safari.

I create a link when user clicks on that link it popups a dialogue box. the problem is with the style. I ll upload pictures that will explain better

here is my code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.outer_border {
position: fixed;
margin-left: 115px;
margin-top: 150px;
width: 470px;
height: 125px;
border: 1px solid #b0c5cf;
display: none;
z-index: 1000px;
}

.plan_form {
position: fixed;
width: 460px;
height: 115px;
margin-top: 5px;
margin-left: 5px;
display: none;
background-color: #b0c5cf;
z-index: 1000;
/*border: 1px solid #666;*/
}
#share_plan {
margin-left: 40px;
margin-top: 15px;
}
.cancel_btn {
float: left;
}
</style>
<script type="text/javascript" src="lib/jquery-1.4.min(Production).js"></script>
<script>
$(document).ready(function() {
$(".share_plan").click(function() {
	$('.plan_form').css('display','block');
	$('.outer_border').css('display','block');
});
$('#cancel_btn').click(function() {
	$('.plan_form').css('display','none');
	$('.outer_border').css('display','none');
});
});
</script>
</head>

<body>
<div class="share_plan"><a class="share_plan" href="#">Share plan</a></div>
<div class="outer_border">
        <div class="plan_form">
            <form id="share_plan" action="home.php" method="post">
                <div class="plan_text"><textarea id="plan" name="plan" rows="3" cols="45"></textarea></div>
                <input type="hidden" name="posted" id="posted" value="true" />
                <div class="cancel_btn"><input type="button" name="share_planbtn" id="cancel_btn" value="Cancel" /></div>
                <div class="plan_btn"><input type="button" name="share_planbtn" id="share_planbtn" value="Share" /></div>
                <div id="plan_chars_info"></div>
            </form><!-- share_plan -->
        </div><!-- plan_form -->
    </div><!-- outer_border -->
</body>
</html>

 

the first image is taken from Firefox is working fine on firefox, IE and opera.

the second one is taken from safari. its desgin is abit problem. how can it be solved to work on all browsers.

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.