niche Posted May 8, 2012 Share Posted May 8, 2012 (edited) The button, in the form, is forcing the lower right button out of the yellow div. Why? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><?php session_start(); ?><html xmlns="http://www.w3.org/1999/xhtml"><head><meta name="description" content="Save money" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>ebop </title><style type="text/css">.button {margin:0px;padding:0px;width:82px;height:40px;font-size:12px;vertical-align:top;}.message {position:relative;margin:10px 0px 0px -5px;background:white;width:100px;display:none;border-style:solid;border-width:4px;}.div{margin:0px 0px 0px 0px;float:left;overflow:visible;width:170px;height:85px;background:yellow;}.wrapper{width:595px;}button.button:hover div.message {display:block;}</style></head><body><?phpecho '<div class="div">'; //button div echo '<button class="button" >Item <br/>Info'; echo '</button>'; echo '<button class="button" >Company Info'; echo '</button>'; echo '<form action="cart.php" method="post" style="height:40px;width:82px;" >'; echo '<button class="button" type="submit" >Save for Printing</button>'; echo '</form>'; echo '<button class="button" >email Question'; echo '</button>';echo '</div>'; //closes button div?></body></html> Edited May 8, 2012 by niche 1 Link to comment Share on other sites More sharing options...
niche Posted May 8, 2012 Author Share Posted May 8, 2012 I didn't have the form in the flow. Thanks to all that read this post. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now