473,769 Members | 5,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cant figure out layouts

Hello,

I am having a lot of problems figuring out layout in CSS. There are a
couple of problems that I am facing:

1. My layout requires me to have 3 sections at the top of the page. So
I broke these up into three divs each with float: left. But when I
reduce the width of the browser each of these div wrap under the
other. I thought putting overflow:hidden would help but it doesnt seem
to. Can someone please help here.

2. I put all the contents of my page in one big DIV tag and centered
it. The third section of the header, which is a login form is also
constructed using CSS floats instead of a table. This form, displays
correctly in IE 6 but looks horrible in Mozilla Firefox. Can someone
please point out where I going wrong.

3. Am I approaching my layour problem in the right manner? Is there a
better solution?

Thank You

Here is my html code:

-------------------------------------------------------------------------------
<body>
<div id="allContent" >
<div id="header">
<div id="topLeftAd" >
<span class="default-pos">
<object type="applicati on/x-shockwave-flash"
data="flash/topLeftad.swf" width="168" height="100">
<param name="topLeftAd " value="flash/topLeftad.swf">
<img src="noflash.gi f" width="683" height="198" alt="" />
</object>
</span>
<span class="default-pos">
<img src="images/songsixty.png" alt="SongSixty. com"
style="border:0 px; clip: rect(10px 10px 10px 10px);" />
</span>
</div>
<div id="topRightLog in">
<div class="row">
<span class="floatLef t"><b>Login</b></span>
<span class="floatRig ht"><b><a href="#">Sign Up
Now!</a></b></span>
</div>
<div class="row">
<span class="floatLef t">Email ID:</span>
<span class="floatRig ht"><input type="text" name="email_id"
value="" class="textBox" size="20" /></span>
</div>
<div class="row">
<span class="floatLef t">Password: </span>
<span class="floatRig ht"><input type="password" name="password"
class="textBox" size="20" /></span>
</div>
<div class="row">
<span class="floatLef t"><input type="button" value="Login"
class="button" /></span>
<span class="floatRig ht"><a href="#">Forgot your
password?</a></span>
</div>
</div>
</div>
</div>
</body>
----------------------------------------------------------------------------

And here is my CSS

div#allContent {
position: relative;
margin: 0px;
padding: 0px;
width: auto;
border: 2px solid #E0E0E0;
}

body {
margin: 0% 12.25% 0% 12.25%;
padding: 0px;
background-color: #CCCCCC;
}

div#header {
padding: 0px;
margin: 0px;
width: 100%;
height: 100px;
overflow: hidden;
}

div#topLeftAd {
border-width: 0px;
padding: 0px;
margin: 0px;
float: left;
width: auto;
height: 100%;
overflow: inherit;
}

div#topRightLog in {
padding: 0px 5px 0px 0px;
margin: 0px;
float: left;
width: auto;
max-width: none;
height: 100%;
font-size: 10px;
font-family: sans-serif;
color: #666666;
background-color: #FFFFFF;
border: 0px solid #000000;
overflow: inherit;
}

..row {
clear: both;
padding: 4px 0px 0px 0px;
font-family: sans-serif;
font-size: 10px;
color: #666666;
text-align: left;
}

..floatLeft {
float: left;
font-family: inherit;
font-size: inherit;
color: inherit;
text-align: inherit;
width: 28%;
}

..floatRight {
float: right;
font-family: inherit;
font-size: inherit;
color: inherit;
text-align: inherit;
width:72%;
}
Jul 20 '05 #1
0 2213

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

Similar topics

1
1707
by: Dario de Judicibus | last post by:
I wish to create two simple layouts by using only HTML, CSS and the minimum JavaScript as possible. Layouts should be "elastic" (no fixed widths and heights) and cross-browser enabled. The first one is a non-scrollable page which contains a centered title and a centered division with automatic scrolling on overflow, that is: +---------------------+ | TITLE | | +--------------++ |
6
2827
by: Tristan Miller | last post by:
Greetings. Can someone point me to a good source of nice, simple stylesheets, similar to the W3C Core Styles provided at http://www.w3.org/StyleSheets/Core/? I don't need anything fancy like multiple columns; I just want some more elegant combinations of fonts and colours for all the basic HTML elements. The Open Directory Project has a whole category devoted to CSS layouts, but as far as I can tell most of those sites concentrate on...
0
1627
by: John Bradley | last post by:
I've read and understood the w3 specs on css1 and css2. I've done some positioned layouts on my own system that worked as expected. But - I'm concerned about letting anything on to the live system because all I hear are bugs, workarounds and hacks. The last straw was the ie6 peekaboo bug. I don't have ie6 and in a panic had to phone my brother the other side of the country to tell him to browse my simple site and describe what he saw. It...
7
3365
by: Alan J. Flavell | last post by:
A colleague recently breezed in with a new web page design. He didn't tell me where he got the ideas from, but ... Looking at his stylesheets, I noticed they identified themselves as "Ruthsarian Layouts". Google took me to http://webhost.bridgew.edu/etribou/layouts/ We don't seem to have had any discussion here that mentioned them. Anyone care to take a look, and share thoughts?
16
2460
by: Michael Rozdoba | last post by:
I'm far from a CSS expert, but what I see of it I really like & I love keeping content & style separate. I also hate the way table layout produces convoluted bulky code. However when asked why one should use CSS rather than tables, particularly when tables work & browser support of CSS can be dodgy, especially in IE, I usually fail to come up with a concise & convincing argument :/ I've been having this long running discussion with a...
3
1809
by: Kentor | last post by:
hello, im trying to make a little loop, but i cant figure it out... i have a string with a bunch of 1s and 0s in it: 110101010101111010101 .... i need to count the number of 1s divide it by 2 and make a table with 2 columns and then for every one, depending on its position in the string i need to output a word and then go to the next 1 and output a dif word.... its amenities, winter activities and summer activities for cottages that i...
2
7380
by: g35rider | last post by:
Hi, I have the following code that is giving this error, I cant simplify the code, I was just testing some theory for something we are doing and was getting an issue here. Please someone point out whats wrong with my code. class MsgData { char* data;
4
1462
by: james00 | last post by:
Switching Page Layouts!!! Does anyone have any idea how to create a script for Switching Page Layouts. I know how to create one for Style Sheet Switcher (http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm) but not for PAGE layouts. I mean I can make a menu to switch between a Wide Page Layout and Narrow Page Layout but I want that to be stored into a cookiee so that will show up when the visitor check back again. THANK...
6
2479
by: WolfgangS | last post by:
Ok first off, i am a total beginner at this groups stuff and i have no clue how this works. This is probabaly the wrong group for my problem but i will post it anyways. Learning by doing right? I will post a code snippet and explain my problem. I cant seem to find a logical explanation why this problem would occur after trying to figure it out for a few hours. However I am probably just blind and/or stupid and you will realise where i go...
5
1879
by: chevon1920 | last post by:
I am trying to do my assignment but I cant figure out how to get 8 data points per line to print to a file. Here is the assignment 1. Program asks the user to enter an odd number as a BASE, using this Base it creates 48 multiples of the BASE and prints in a data file "data_3b.txt", 8-data per line. 2. Program opens this data file, scans the contents of "data_3b.txt" file and counts all the odd data, and prints them on the screen: 4 data...
0
9589
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
9423
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,...
0
10219
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
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
8876
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...
0
6675
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();...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.