473,320 Members | 1,828 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,320 software developers and data experts.

Float Left TeaxtAlign Center

Hey,

The code that follows im having problems with, i think tis the CSS, but
i dont have a clue of fixing it, i have tried any things but without
the float:Left there is no point the folloing code lays the page out
like so:

| obj1 obj2 obj4 obj6 obj8
|
| obj3 obj5 obj7 obj9
|

obj1 Is in a DIV On its own
obj2 and 3 are in a div of there own
obj4 and 5 are in a div of there own
obj6 and 7 are in a div of there own
obj8 and 9 are in a div of there own

But it dont align it center,

And here what i need it to look like:
| obj1 obj2 obj4 obj6 obj8
|
| obj3 obj5 obj7 obj8
|

I have used a outer div to encapsulate all of the inner DIV's, and i
used the inner divs like so, so that it groups and displays the objects
like so, otherwise it would just stack then down the screen, Unless
there is another way that i dont know aobut (Except useing Tables, but
that is my last resort)

Thank you for any help
Chris

Code ===============================================
CSS:
div#starting, div#import, div#Export, div#Crop, div#Year
{
clear: none;
float: left;

}

div#Center
{
text-align:center;
}

HTML:
<div id="Center">
<div id="year"><asp:label id="lblYear" CssClass="lblMain"
Runat="server">Year:</asp:label><br>
<asp:listbox id="lsbYear" CssClass="lsbMain" Runat="server"
SelectionMode="Multiple"></asp:listbox></div>
<div id="Starting"><asp:label id="lblRegion" CssClass="lblMain"
Runat="server">Region</asp:label><br>
<asp:listbox id="lsbRegion" CssClass="lsbMain" Runat="server"
SelectionMode="Multiple" AutoPostBack="True"></asp:listbox><br>
<asp:listbox id="lsbCountry" CssClass="lsbMain" Runat="server"
SelectionMode="Multiple"></asp:listbox></div>
<div id="Export"><asp:label id="lblExporting" CssClass="lblMain"
Runat="server">Exporting To:</asp:label><br>
<asp:listbox id="lsbExportRegion" CssClass="lsbMain"
Runat="server" SelectionMode="Multiple"
AutoPostBack="True"></asp:listbox><br>
<asp:listbox id="lsbExportingCountry" CssClass="lsbMain"
Runat="server" SelectionMode="Multiple"></asp:listbox></div>
<div id="Import"><asp:label id="lblImporting" CssClass="lblMain"
Runat="server">Importing From:</asp:label><br>
<asp:listbox id="lsbImportRegion" CssClass="lsbMain"
Runat="server" SelectionMode="Multiple"
AutoPostBack="True"></asp:listbox><br>
<asp:listbox id="lsbImportingCountry" CssClass="lsbMain"
Runat="server" SelectionMode="Multiple"></asp:listbox></div>
<div id="Crop"><asp:label id="lblCrop" CssClass="lblMain"
Runat="server">Crop:</asp:label><br>
<asp:listbox id="lsbCropType" runat="server"
SelectionMode="Multiple" AutoPostBack="True"
cssclass="lsbMain"></asp:listbox><br>
<asp:listbox id="lsbCrop" runat="server" SelectionMode="Multiple"
cssClass="lsbMain"></asp:listbox></div>
<div id="SelectButton"><asp:button id="butSelect" runat="server"
Text="Select"></asp:button><br>
<asp:button id="butRestart" runat="server"
Text="Restart"></asp:button></div>
</div>

Aug 23 '06 #1
0 2656

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

Similar topics

11
by: Jeff Thies | last post by:
I have a series of blocks that are float left that I need centered on the page. <div class="center" align="center"> <div style="width: 100 px;float: left">thumbnail 1</div> <div style="width:...
2
by: Gustav Medler | last post by:
Css only offers float:right; and float:left; Is it possible, to center an image, floated around by text? Cross browser funcionality is needed for NS4.7, IE 5.x, Op 6.x, Moz 1.x, Konqu 3.x. I...
3
by: Ian Watts | last post by:
I am trying without success to understand what is going on. I am developing a site at http://www.ianwatts.info/edensor/ http://www.ianwatts.info/edensor/edensor.css and I have two problems....
1
by: Robert | last post by:
I created two pages. One using CSS and the other using a table. I'd like the css version to work like the table version. The problem arises when the full image doesn't fit in the window. Click...
7
by: alex.krupp | last post by:
I have this webpage where I am getting the dreaded float drop bug in IE. I tried everything in the float drop FAQs online, but nothing can get it working. I have narrowed down the problem though....
0
by: jonipony | last post by:
HELP: Float Left box is drifting to the right in ie! -------------------------- I need som HELP with my CSS coding! On the following web page my design falls apart at screen size 800 x 600...
2
by: Ian N | last post by:
Hi, I've been trying to get my CSS menu to float to the middle of the page. As i'm also designing to cater for users with 800 x 600 browsers, i have split the menu into two lists, this way it'll...
27
by: GloStix | last post by:
WARNING VIDEO TAKES A WHILE TO LOAD http://screencast.com/t/BWQ6DNtsM I really don't know how to fix this other than putting another div. But I dont' exactly want to do that for every page....
13
by: limelites | last post by:
In IE7, FF, Chrome and Safari, everything looks great but in Opera the display of the additional images in my product page looks awful. This is a site that does attract foreign visitors who do use...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.