473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

<table> to CSS conversion problem

Hi!

On http://festest.hullin.net/index2.php...ur&ausklapp=,2, (make
sure to add that last comma to the URL), you can see a basic example of a
discussion board's tree structure. Right now, I'm doing the expanded text
box as a table, such as:

<table cellpadding="0" cellspacing="0" width="634">
<tr>
<!-- first the vertical lines connecting the lower postings to the
-->
<td style="background-image: url(/bilder/senkrecht.gif);
background-repeat: repeat-y; width:18px">
&nbsp;
</td>
<!-- then the text box itself -->
<td style="border:1px solid black;padding:3px;margin:12px;">
{TEXT}
</td>
</tr>
</table>

As I tried to convert this into CSS, I built a table-like construction using
the display property. Like:

<div style="display:table; margin:0px; padding:0px; width:634px">
<div style="display: table-row">
<div style="display: table-cell; background-image:
url(/bilder/senkrecht.gif); background-repeat: repeat-y; width:18px">
</div>

<div style="display: table-cell; border:1px solid black; padding:
3px;margin: 12px;">
{TEXT}
</div>
</div>
</div>

but in IE6, the outcome looks like this:

http://festest.hullin.net/funny.gif

The cells I'd like to have in one single row appear to have moved apart, and
I really don't know why. Isn't this exactly the way to do tables in CSS? Any
suggestions?

Regards,
Matthias
Jul 21 '05 #1
4 3063
Zif
Matthias Hullin wrote:
Hi!

On http://festest.hullin.net/index2.php...ur&ausklapp=,2, (make
sure to add that last comma to the URL),


Use '<URL:>' to enclose your links, then they'll work for most news
readers.

<URL:http://festest.hullin.net/index2.php?was=nurstruktur&ausklapp=,2,>

[...]

--
Zif
Jul 21 '05 #2
Ziv schrieb:
<URL:http://festest.hullin.net/index2.php?was=nurstruktur&ausklapp=,2,>


Here, at least, this doesn't work - the comma is swallowed anyway. Any idea
concerning my actual problem?

Regards,
Matthias
Jul 21 '05 #3
Zif
Matthias Hullin wrote:
Ziv schrieb:
<URL:http://festest.hullin.net/index2.php?was=nurstruktur&ausklapp=,2,>

Here, at least, this doesn't work - the comma is swallowed anyway.


C'est la vie - be safe in the knowledge that others will appreciate
your efforts even if you don't benefit.
Any idea
concerning my actual problem?


If you believe the links below, display attributes table-row and
table-cell aren't supported by IE.

<URL:http://www.htmldog.com/reference/cssproperties/display/>
<URL:http://meyerweb.com/eric/thoughts/category/tech/css/page/3/>

One of the more knowledgeable posters should have responded by now, but
it seems they'd rather argue over whether CSS really is better than
tables than answer a fairly simple question.
--
Zif
Jul 21 '05 #4
in comp.infosystems.www.authoring.stylesheets, Matthias Hullin wrote:
Hi!

On http://festest.hullin.net/index2.php...ur&ausklapp=,2, (make
sure to add that last comma to the URL),
Your URL is bad if it requires , on the end. Nobody will understand it
there, don't put it there.
you can see a basic example of a
discussion board's tree structure. Right now, I'm doing the expanded text
box as a table, such as:
Your problem is that you are doing wrong thing. Doing layout like that is
not too hard using CSS. What is hard is mark it up meaningfully.

Mark up your HTML, then think how to do it with CSS. I see no sence at
all for using CSS tables, this is far better to do with something
simpler. Depends a lot on your markup, for example, is that image content
or not.

I would maybe mark it up as nested lists.
The cells I'd like to have in one single row appear to have moved apart, and
I really don't know why. Isn't this exactly the way to do tables in CSS? Any
suggestions?


Yes. But tables are not very useful way to do your layout, and CSS tables
don't work in IE.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Kohtuuhintainen yksiö/huone haussa Oulusta syyskuusta eteenpäin.
Searching places to sleep on axis Bonn - Tsech - Poland - baltic sea in
july
Jul 21 '05 #5

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

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
3
by: Paul Thompson | last post by:
When I put a <div ...> inside a <table> specification, functionality is not there. When I put the <table> inside the <div> everything works. Why is that?
61
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
10
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
0
by: timnels | last post by:
I've got a bizzare issue where I have an XML file to load into a data set like: <conversion> <table name="parent"> <table name="child"> </table> </table> <table name="another parent"> ....
8
by: ASP Yaboh | last post by:
I have an ArrayList of data gathered from a database. I want to create a web page from this data by creating a <table>, each cell in each row displays the appropriate data. One of those cells in...
13
by: Davo | last post by:
Hi Folks, There seems to be something about not using tables for layout, but use divs instead. I'm not sure if I've got this right. If the output looks like what you want, then it shouldn't...
3
by: PYG | last post by:
Hi everybody I have a simple question : If i use this code : <body style="font-size:24px;color:blue;"> Text in body <table> <tr><td> Text in table
0
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've created my table and alli is fine. I name my <tdtags to make them easier to identify when my table gets large. Anyway, I am naming as such: <td id="cellName" > Now, sometimes when make a...
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...
0
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,...
0
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...
0
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,...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.