This is a discussion on "Table conversion problem" within the Web Page Design section. This forum, and the thread "Table conversion problem are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Table conversion problem
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hi,
I'm attempting to replace tables in my site (bmtg.org.uk) with CSS. Most of this I've worked out how to do, with the exception of the menu at the top of the screen (take a look at http://www.bmtg.org.uk/index.php as an example). I thought that converting the table to a DIV and the menu elements within to SPANs would work, but the block-style anchor tags are causing display problems. Any thoughts on the best way to convert this? David. |
|
#2
|
|||
|
|||
|
Re: Table conversion problem
Ok. Worked it out now - the clue was in my own question
The block anchor tag was the fault. Anyway, quick question - if you display two items, each within a SPAN tag, they appear with a gap between them. Is there anyway of getting rid of this gap? David. |
|
#3
|
|||
|
|||
|
Re: Table conversion problem
span.foo { margin:0; padding:0;}
<span class="foo">Foo Foo Foo</span> Or something. I need coffee.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#4
|
|||
|
|||
|
Re: Table conversion problem
Or if the spans are in another div you could do #foo span {} and have it automatically apply to every <span> element contained within #foo without having to add a class or id to each span.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Table conversion problem
Ok, here's a simple example of what I mean:
David. |
|
#6
|
|||
|
|||
|
Re: Table conversion problem
<a href="#">Test 1</a><a href="#">Test 2</a>
remove the space.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Table conversion problem
Okay, ignore that space and you will still get a gap between the words "Test 1" and "Test 2". This is the gap I'm trying to illiminate. David. |
|
#8
|
|||
|
|||
|
Re: Table conversion problem
When I just put <a href="#">Test 1</a><a href="#">Test 2</a> in the HTML it has no gap in IE or FF. Not sure what to tell you. Can you show me the complete source?
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
#9
|
|||
|
|||
|
Re: Table conversion problem
David. |
|
#10
|
|||
|
|||
|
Re: Table conversion problem
I don't think I've explained this very well so I've knocked something up to do it a bit better. Everything is in-line, so the source is easy to follow (although it is a quick knock-up, so don't expect it to run through a validator first time
It can be found here: http://www.bmtg.org.uk/test.html Any assistance with this will be appreciated. David. |
![]() |
| Tags |
| table, conversion, problem |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Iframe / Table Problem.... help me!!! | bigbluesky2006 | Web Page Design | 4 | Dec 16th, 2006 11:59 |
| Table Problem? | ivan | Web Page Design | 8 | Mar 1st, 2006 10:31 |
| Table sizing problem | Jaken Veina | Web Page Design | 1 | Jan 6th, 2006 23:06 |
| CSS and Table problem | lisnalinchy | Web Page Design | 10 | Aug 3rd, 2005 10:54 |
| Expandable Table Problem | legomaniac | Web Page Design | 3 | Jul 15th, 2005 15:16 |