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

Help with floats...

I am trying replace TABLES with CSS in a program which generates HTML.

But I can't figure out how to do what I want.

With stylesheets: http://kowallek.myiglou.com/temp/I2391.htm

Stylesheet: http://kowallek.myiglou.com/temp/lrw.css

This is my CSS version. When I decrease the width of the browser window, the
DIVs on the right start to wrap around. The results look terrible.

With tables: http://kowallek.myiglou.com/dennis/genealogy/whl.htm

This is my TABLE version. You can see that it stays quite readable when the
width of the browser window is decreased.

Am I wasting my time trying to get this to work with just CSS? Should I stick
with tables?

Any suggestions are welcome.

P.S. I am a novice with stylesheets, so please bear with me. ;-)

--

Dennis
Sep 25 '05 #1
2 1236
Dennis wrote:
I am trying replace TABLES with CSS in a program which generates HTML.


And generating DIV soup in the process! Try something like:

<h1>Descendants of William Henry Lee</h1>
<hr>

<ul class="childlist">

<li>
<strong>William Henry Lee</strong>
<img src="male.gif" alt="male">
<p>b. 8 Aug 1798 in South Carolina, d. 14 Jan 1855
in Vance Township, Vermilion Co., Illinois, bur. in
Vance Township, Vermilion Co., Illinois
(Davis Cemetery)</p>

<ul class="marriagelist">
<li>Married: 5 Feb 1818 in Clinton Co., Ohio<br>
Spouse: Rebecca Sewell -<br>
b. 7 Jun 1797 in Virginia, d. 18 Jun 1881, bur.
in Vance Township, Vermilion Co., Illinois (Davis
Cemetery)</li>
</ul>
</li>

<!-- etc -->

<li>
<strong>Frank Leslie Lee</strong>
<img src="male.gif" alt="male">
<p>b. 7 Jan 1891 in Fithian, Vermilion Co., Illinois,
d. 11 Mar 1983 in Wheeler, Tillamook Co., Oregon, bur.
15 Mar 1983</p>

<ul class="marriagelist">
<li>Married: Abt 1919<br>
Spouse: Winnie R. Stanton<br>
b. Abt 1902 in Wisconsin</li>
<li>Married: Aft 1930<br>
Spouse: Della (Lee)<br>
b. 1 Jun 1887, d. Jul 1969</li>
</ul>
</li>

<!-- etc -->

</ul>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Sep 26 '05 #2
On Mon, 26 Sep 2005 08:08:36 +0100, Toby Inkster
<us**********@tobyinkster.co.uk> wrote:
I am trying replace TABLES with CSS in a program which generates HTML.


And generating DIV soup in the process! Try something like:


I hear you. That's why I was having second thoughts about converting the
TABLEs to CSS. If the result is still a bunch of nested tags, then I haven't
improved anything.

Thanks for your suggestion. It's not exactly the way I wanted to lay things
out, but it's worth thinking about.

--

Dennis
Sep 26 '05 #3

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

Similar topics

7
by: Ted | last post by:
I've written a little function to remove everything after the 2nd decimal place for prices which is as follows: - ReturnConvertedCurrency = (fix(iSterling * session("ExchangeRate") * 100) / 100)...
8
by: Tom | last post by:
Has anyone ever seen a IComparer for floats the returns magnitude. i.e. instead of returning -1, it would return -5. To let you know HOW different the two numbers are. obviously for int it is a -...
8
by: Madhusudan Singh | last post by:
Is it possible to convert a very long list of strings to a list of floats in a single statement ? I have tried float(x) and float(x) but neither work. I guess I would have to write a loop if...
8
by: Tom | last post by:
Has anyone ever seen a IComparer for floats the returns magnitude. i.e. instead of returning -1, it would return -5. To let you know HOW different the two numbers are. obviously for int it is a -...
16
by: luca bertini | last post by:
Hi, i have strings which look like money values (ie 34.45) is there a way to convert them into float variables? everytime i try I get this error: "numb = float(my_line) ValueError: empty string...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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.