473,386 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

layout element positioning using CSS...

Hi, I am trying to achieve this simple layout
http://img478.imageshack.us/my.php?image=boceto2ah.gif

and I have problems with the navigation div (the numbers)
btw, the right way its somthing like
1234
5678
at bottom of that line, not vertical like that image
and this is the 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>
<title>hola mundo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>
<!--
body, html {
margin: 15px 0 0 0;
padding: 0;
background: #fff;
color: #000;
}

body {
min-width: 764px;
}

#contain {
background: #fff;
margin: 0 auto;
width: 764px;
height: 419px;
}

#main {
background: #514c38;
float: left;
width: 382px;
height: 419px;
font: .7em Verdana, Geneva, Arial, Helvetica, sans-serif;
color: #eeeeee;
}

#content {
float: right;
width: 290px;
text-align: right;
padding: 0 10px 0 0;
}

#content h2, #content h3 {
padding: 0;
margin: 0;
color: #35ad9b;
font-weight: bold;
font-size: 1.1em;
}

#buttons {
float: left;
padding: 0;
margin: 0 0 0 18px;
width: 60px;
height: 34px;
}

#navigation {
position: relative;
bottom: 0;
padding: 0;
margin: 0;
width: 382px;
height: 10px;
text-align: right;
border: 1px solid #cccccc;
}

#navigation ul{
margin:0;
padding:0;
list-style:none;
}

#navigation li{
display:inline;
margin:0;
padding:0;
}

#mainimage {
float: right;
width: 382px;
background: #99c;
}

#mainimage ul {
margin-bottom:0;
}

#mainimage h3, #mainimage p {
padding:0 10px 0 0;
}
//-->
</style>

</head>
<body>
<div id="contain">
<div id="main">
<img src="/imagenes/cabecera.gif" alt="" width="382" height="85" />

<div id="content">
<h2>Nombre del cliente</h2>
Ejemplo descripción cliente<br /><br />
Gran mate para tomar mucho mate y más mate,<br />
mate.
</div>

<div id="buttons">
<img src="/imagenes/enlacecontacto.gif" alt="" width="60" height="17" />
<img src="/imagenes/enlaceportfolio.gif" alt="" width="60" height="17" />
</div>

<div id="navigation">asdsas acá los números</div>
</div>
<div id="mainimage"><img src="/images/granmate.jpg" alt="" align="top"/></div>

</div>

</body>
</html>
I was trying to put the bottom of #navigation equal than the bottom
of #main... using bottom: 0;
but I have no idea on how to do it...
and... It is ok the way I tryied to solve it?
Is there any other better way to make it?
TIA, and sorry for the bad english :)
--
Luciano A. Ferrer
la**************@SacaDMEgmail.com
http://relojurbano.com.ar .algún día volverás.

.... Velador elástica mueca
Jun 7 '06 #1
1 1345
Luciano A. Ferrer ha escrito lo siguiente el 07/06/2006 17:04:
Hi, I am trying to achieve this simple layout
http://img478.imageshack.us/my.php?image=boceto2ah.gif

and I have problems with the navigation div (the numbers)
btw, the right way its somthing like
1234
5678
at bottom of that line, not vertical like that image
and this is the 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>
<title>hola mundo</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<style>
<!--
body, html {
margin: 15px 0 0 0;
padding: 0;
background: #fff;
color: #000;
}

body {
min-width: 764px;
}

#contain {
background: #fff;
margin: 0 auto;
width: 764px;
height: 419px;
}

#main {
background: #514c38;
float: left;
width: 382px;
height: 419px;
font: .7em Verdana, Geneva, Arial, Helvetica, sans-serif;
color: #eeeeee;
}

#content {
float: right;
width: 290px;
text-align: right;
padding: 0 10px 0 0;
}

#content h2, #content h3 {
padding: 0;
margin: 0;
color: #35ad9b;
font-weight: bold;
font-size: 1.1em;
}

#buttons {
float: left;
padding: 0;
margin: 0 0 0 18px;
width: 60px;
height: 34px;
}

#navigation {
position: relative;
bottom: 0;
padding: 0;
margin: 0;
width: 382px;
height: 10px;
text-align: right;
border: 1px solid #cccccc;
}

#navigation ul{
margin:0;
padding:0;
list-style:none;
}

#navigation li{
display:inline;
margin:0;
padding:0;
}

#mainimage {
float: right;
width: 382px;
background: #99c;
}

#mainimage ul {
margin-bottom:0;
}

#mainimage h3, #mainimage p {
padding:0 10px 0 0;
}
//-->
</style>

</head>
<body>
<div id="contain">
<div id="main">
<img src="/imagenes/cabecera.gif" alt="" width="382" height="85" />

<div id="content">
<h2>Nombre del cliente</h2>
Ejemplo descripción cliente<br /><br />
Gran mate para tomar mucho mate y más mate,<br />
mate.
</div>

<div id="buttons">
<img src="/imagenes/enlacecontacto.gif" alt="" width="60" height="17" />
<img src="/imagenes/enlaceportfolio.gif" alt="" width="60" height="17" />
</div>

<div id="navigation">asdsas acá los números</div>
</div>
<div id="mainimage"><img src="/images/granmate.jpg" alt=""
align="top"/></div>

</div>

</body>
</html>
I was trying to put the bottom of #navigation equal than the bottom
of #main... using bottom: 0;
but I have no idea on how to do it...


well, I solve it making main relative and navigation absolute...

--
Luciano A. Ferrer
la**************@SacaDMEgmail.com
http://relojurbano.com.ar .algún día volverás.

.... Velador elástica mueca
Jun 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
39
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
21
by: Amy | last post by:
Hello all, Well, I've decided to take the plunge and go for this no table theory... so far I'm not impressed - the whole thing is driving me mad!!!! I'm sure once I finally get it working...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
4
by: NWx | last post by:
Hi, I develop an ASP.NET app which should be used from Internet, so I don't have control over what browsers will be used. I don't want to target every possible users, so I don't really mind is...
3
by: Dave | last post by:
I am designing a web page using VS2003 ASP.NET. The page contains various DIVs (panels), one of which is in grid layout. The controls in this DIV render correctly in IE, but when using Firefox they...
3
by: Samuel Shulman | last post by:
I am looking for good guidance for positioning controls on the form.document, it is absolute nightmare and I don't know where to begin Thank you, Samuel Shulman
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
8
by: dixzyt | last post by:
Hi I wonder if anyone would be so kind as to help me with this issue that's driving me nuts! The webpage below displays correctly on IE & Opera but NOT on Firefox 2.0.
5
by: Adam Smith | last post by:
Hello, Several of the newer, more professional web sites are using a newspaper columnar layout, with text and links discretely contained in rectangular boxes (square or rounded), frequently with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.