473,662 Members | 2,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.dt d">
<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 1357
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.dt d">
<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
10671
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
39
5672
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
2700
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 it'll be groovy and I'll never took back - I suppose it's just hard to change, I've got really used to creating WebPages with tables it's second nature! So.... http://www.amykimber.com/amy/a.htm - what am I doing wrong?
47
9127
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
2343
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 some user with a very ancient browser (Netscape 3 or 4, or IE 3) won't be able to view the site properly. However, I want that modern browsers (IE 5+, Netscape 6, Mozilla, Opera, and possible other browsers with new versions) to be able to...
3
2357
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 are incorrectly positioned. VS sets the positioning of the controls to absolute, and because the DIV is to the right of another DIV Firefox (correctly, I suspect) positions the controls absolutely, which means they are too far to the left, while...
3
1538
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
4842
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 can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the designer. The other could be that you have more free hand and control to design your GUI. 2....
8
5575
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
6771
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 colored 'Title' tabs at the top. How are these boxes generated, are they using 'floating boxes' juxtapositioned to create the layout effect?
0
8435
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7368
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.