2 replies [Last post]
elton_vinicius
elton_vinicius's picture
User offline. Last seen 1 year 8 weeks ago. Offline
newbie
Joined: 2009-06-30
Posts: 2
Points: 0

Hello friends, can you help me?

In my header have a logo(yellow), a INPUT BUTTON and two links.

When I resize the browser window I want the INPUT and LINKS
slipping to left, as in the picture below:

But I had the problem. If the window is too small, the div(top_botoes) drops below the yellow logo div(top_marca), as in the picture below:

I want the header is like this:

this is possible?

I put position:fixed but this way the INPUT and LINKS don't slipping to left when resized the browser window.

I put the code below.

<html xmlns="http://www.w3.org/1999/xhtml">
<style type="text/css">
<!--
 
.top{float:left; height:46px; width: 100%; background-image: url(images/bgdiv1.gif);background-repeat: repeat-x; display:block;}
 
.top_marca {float:left; width: 160px;}
input {float:left; width: 170px; margin: 10px 0px 0px 0px;}
.top_botoes {float:right;}
.top_links {float:left;	width: 150px; margin: 13px 0px 0px 50px;}
.top_links a:link {font-family: Verdana;font-size: 11px;color: White;text-decoration: none;}
.top_links a:visited{font-family: Verdana, Arial; font-size: 11px; color: White; text-decoration: none; }
body {background-color:#000000;}  
-->
</style>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
 
<title>Teste</title>
</head>
 
<body>
 
 
		<div class="top">
				<div class="top_marca">
					<img src="images/marca.jpg" />
				</div>
				<div class="top_botoes">
						<input name="criar" type="button" value="CRIAR" />
						<div class="top_links">
							<a href="#">Link</a>        
							<a href="#">Link</a> 
						</div>				
				</div>
		  </div>
 
 
 
</body>
</html>

thanks!

Deuce
Deuce's picture
User offline. Last seen 26 min 23 sec ago. Offline
rank Guru
Guru
Timezone: GMT-7
Joined: 2005-11-20
Posts: 3731
Points: 1038

validate your code.

validate your code.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

elton_vinicius
elton_vinicius's picture
User offline. Last seen 1 year 8 weeks ago. Offline
newbie
Joined: 2009-06-30
Posts: 2
Points: 0

I discovered how can I do

I discovered how can I do this.

Only put min-width in div top.

Thanks Deuce.