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

CSS float help

Hello,

I am working on a webpage, and am having trouble with the alignment
when using CSS. This is my first CSS site, so I have no experience
with this.

Here is the link:

http://www.bellglass.ca

Here is the link to the stylesheeet:

http://www.bellglass.ca/StyleSheets/main.css

I'm sure there are many things wrong, but one thing in particular is
giving me trouble. I have the main top bar with the logo etc., then
the "apartments" picture, and then 3 columns, with titles, and texts.
These columns are fine on my computer, but are not aligned perfectly
(ie, the last column heading wraps around to the bottom) when viewed
on another computer. I have a float:left; in the declaration of the
stylesheet, and when i remove this, it does the same thing, so it
might be the source of the problem, I'm not sure.

If anyone has any comments, or ideas on how i can fix this, it would
be much appreciated.

Thanks,
Ben
Jul 20 '05 #1
1 1812
Ben Hazelwood wrote:

This is my first CSS site
http://www.bellglass.ca
http://www.bellglass.ca/StyleSheets/main.css

I'm sure there are many things wrong,
These columns are fine on my computer, but are not aligned perfectly


Yes, indeed, there are many things wrong, but I think the positioning of
the floated columns should be the least of your worries.

What you have here is div-soup. There is virtually no semantic or
structural markup - not a single heading, paragraph or list, just a
bunch of divs and spans. It degrades poorly in many browsing environments.

The HTML also appears to be organized by how you want it rendered in a
graphical browser, not necessarily by how the content logically goes
together. For example, what looks like heading elements for the floated
boxes are completely disassociated from their content. It can make less
than perfect sense when the page is viewed sans stylesheets.

As for the CSS itself, you are relying on IE's broken box model and
other bad behaviors to get the desired effect. This doesn't work in
non-iE browsers, nor in IE6 if you happen to trigger standards mode.

Other aspects of the design don't work so well, either.
- Fixed width: doesn't adjust to the myriad of browser window or canvas
sizes used by your visitors.
- Absolute font-sizes: not resizable by default in IE nor do they adjust
to the visitor's browsing environment, which may be quite different from
your own.
- Low contrasting text and background colors: rather hard to read on
screen, especially at your specified small text size.
- Stylized scrollbars: can cause usability problems for your visitors.
- Invalid code: may render unpredictably. The duplicated "id" values
within a page caught my eye right away, but running the code through a
validator should point out all the errors.

I suggest you start over using semantic, structured markup, resorting to
generic div and span elements only when nothing else is more suitable.
See also
<URL:http://www.htmlhelp.com/reference/html40/olist.html>
<URL:http://www.allmyfaqs.com/faq.pl?AnySizeDesign>
<URL:http://www.allmyfaqs.com/faq.pl?Tableless_layouts>
<URL:http://www.htmlhelp.com/tools/>

HTH & HAND

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 20 '05 #2

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

Similar topics

13
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
3
by: Sybren Stuvel | last post by:
Hi all, I'm trying to make a float-like class (preferably a subclass of 'float') that wraps around. The background: I'm modeling a multi-dimensional space, and some of those dimensions are...
13
by: Michele Guidolin | last post by:
Hello to everybody. I'm doing some benchmark about a red black Gauss Seidel algorithm with 2 dimensional grid of different size and type, I have some strange result when I change the computation...
3
by: Neils Christoffersen | last post by:
Hey all, I wrote on Friday asking for some help moving a common subclass field up to the base class (original post and followup included below). This entails storing whole numbers inside float...
8
by: Kenny ODell | last post by:
I do not know how to convert from a byte array to a float, and back again. I read data from a serial port into a byte (entire command structure which I parse). I am able to sift the data and...
15
by: Kay Schluehr | last post by:
I wonder why this expression works: >>> decimal.Decimal("5.5")**1024 Decimal("1.353299876254915295189966576E+758") but this one causes an error 5.5**1024 Traceback (most recent call...
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...
15
by: k3n3dy | last post by:
Hello everybody, I would like to ask anybody to help me understand what should be done exactly with this Problem. I have provided what I have up to now, although it is not quite accurate. Create...
3
by: Arnie | last post by:
Folks, We ran into a pretty significant performance penalty when casting floats. We've identified a code workaround that we wanted to pass along but also was wondering if others had experience...
0
by: Timothy Grant | last post by:
That's because s IS a string. It's not been converted to a float. In : s = '3.1415' In : n = float(s) In : type(s) Out: <type 'str'> In : type(n) Out: <type 'float'> Why are you avoiding...
1
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.