473,320 Members | 1,867 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.

Table Layout -vs- Div Layout Problem

Hello,

Converting a table layout to a div layout. The navbar is giving me
some trouble.
div link: http://gertrudischale.com/essay.pl.htm (slightly
incomplete, but illustrates problem)
table link:http://gertrudischale.com/_en/essay.htm

The images in the nav bar are slightly smaller in the div version. I
cant figure out why the last item in the nav bar wraps. The widths are
the same as the table layout, and there isnt any extra padding... I'm
at a loss.

Hopefully someone can provide some insight.

Thanks

Jun 19 '06 #1
3 2240
To further the education of mankind, "Roberto Roachling" <hsomob1999
@yahoo.com> vouchsafed:
Hello,

Converting a table layout to a div layout. The navbar is giving me
some trouble.
div link: http://gertrudischale.com/essay.pl.htm (slightly
incomplete, but illustrates problem)
table link:http://gertrudischale.com/_en/essay.htm

The images in the nav bar are slightly smaller in the div version. I
cant figure out why the last item in the nav bar wraps. The widths are
the same as the table layout, and there isnt any extra padding... I'm
at a loss.

Hopefully someone can provide some insight.


If you look at both examples "together", the spaces between the links in
the div versions are larger. You're probably picking up some white space
or list type margins.

--
Neredbojias
Infinity has its limits.
Jun 20 '06 #2
I cant figure out why the last item in the nav bar wraps. The widths are
the same as the table layout, and there isnt any extra padding... I'm
at a loss.

If you look at both examples "together", the spaces between the links in
the div versions are larger. You're probably picking up some white space
or list type margins.


Yes, this is indeed true. I have fixed this by removing the new lines
between <li>s. A friend suggested that I use <!-- --> so the new lines
can remain and the markup can be nicely formatted, although this doesnt
seem to work in all cases.

I'll have to see what the spec says about blank space in HTML.
Thanks for your help.

Jun 20 '06 #3
Roberto Roachling wrote:
> I cant figure out why the last item in the nav bar wraps. The widths are
> the same as the table layout, and there isnt any extra padding... I'm
> at a loss.

If you look at both examples "together", the spaces between the links in
the div versions are larger. You're probably picking up some white space
or list type margins.


Yes, this is indeed true. I have fixed this by removing the new lines
between <li>s. A friend suggested that I use <!-- --> so the new lines
can remain and the markup can be nicely formatted, although this doesnt
seem to work in all cases.

You could also do this:
<li><img
src="/essay.pl_files/bullet_azul.gif"></li><li><a
href="http://localhost/%7Esxshaw/..." ...><img
name="traveln" ...></a></li><li><img
src="..." ...></li><li><...

A little awkward but easier to read than one line for the whole list. And
always works.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jun 21 '06 #4

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

Similar topics

15
by: Xah Lee | last post by:
Here's the belated Java solution. import java.util.List; import java.util.ArrayList; import java.lang.Math; class math { public static List range(double n) { return range(1,n,1); }
10
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the...
9
by: Ed_No_Spam_Please_Weber | last post by:
Hello All & Thanks in advance for your help! Background: 1) tblT_Documents is the primary parent transaction table that has 10 fields and about 250,000 rows 2) There are 9 child tables with...
9
by: Wang, Jay | last post by:
I try to group several rows in a table into a div and show/hide them by click on a button somewhere with a javascript link. When clicked, the link will toggle the style of the div section's style...
4
by: jeffsal | last post by:
I am using sorttable.js to sort a table which works fine which allows a user to sort the table by clicking on the column header. Is there some code I could add to the page (onload or something) to...
7
by: Bing Wu | last post by:
Hi Folks, I have a very large table containing 170 million rows of coordinats: CREATE TABLE "DB2ADMIN"."COORDINATE" ( "FID" INTEGER NOT NULL , "AID" INTEGER NOT NULL , "X" REAL NOT NULL ,...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
4
by: Simone Battagliero | last post by:
I wrote a program which inserts and finds elements in an hash table. Each element of the table is a dinamic list, which holds all elements having the same hash value (calculated by an int...
7
by: klynn | last post by:
I'm wondering what the best way to do the following: I have a page with a table. I built a custom class that creates a System.Web.UI.WebControls table object and return it to the webpage as a...
5
by: jrod11 | last post by:
hi, I found a jquery html table sorting code i have implemented. I am trying to figure out how to edit how many colums there are, but every time i remove code that I think controls how many colums...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.