473,402 Members | 2,055 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,402 software developers and data experts.

how do I get around the problem of safari...


Hi!
how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!

Tim

Jan 24 '06 #1
6 2150
Els
Tim Rogers wrote:
Hi!

how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!


Did you set the padding of the td to 0?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Feelgood - Blues Jam - Oil City Sheiks
Jan 24 '06 #2
Hi!

Yea! - there is the same amount of space under the text as well
in article 1o*****************************@40tude.net, Els at
el*********@tiscali.nl wrote on 24/1/06 18:47:
Tim Rogers wrote:
Hi!

how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!


Did you set the padding of the td to 0?


Jan 24 '06 #3
Els
Tim Rogers wrote:
in article 1o*****************************@40tude.net, Els at
el*********@tiscali.nl wrote on 24/1/06 18:47:
Tim Rogers wrote:
Hi!

how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!


Did you set the padding of the td to 0?


Yea! - there is the same amount of space under the text as well


Does that mean you are going to give us a URL so we can see what
you're doing?

(and please don't toppost again; we prefer to read from top to bottom)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Dr. Feelgood - Homework (live)
Jan 24 '06 #4
in article 1f******************************@40tude.net, Els at
el*********@tiscali.nl wrote on 24/1/06 18:59:
Tim Rogers wrote:
in article 1o*****************************@40tude.net, Els at
el*********@tiscali.nl wrote on 24/1/06 18:47:
Tim Rogers wrote:

Hi!

how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This
means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!

Did you set the padding of the td to 0?


Yea! - there is the same amount of space under the text as well


Does that mean you are going to give us a URL so we can see what
you're doing?

(and please don't toppost again; we prefer to read from top to bottom)

'Does that mean'? It doesn't 'mean' anything, its a question. If you are
asking if there is an example you can see online then no there isn't.

'Top post'. Jesus..

Thanks for your kind, if not a little self important, assistance.

Jan 24 '06 #5
Tim Rogers wrote:

Does that mean you are going to give us a URL so we can see what
you're doing?
'Does that mean'? It doesn't 'mean' anything, it's a question. If you are
asking if there is an example you can see online, then no there isn't.

There is a lot missing from your request. We really need to see an
actual test case demonstrating your problem to give you a useful response.
'Top post'. Jesus..

What does some Spaniard have to do with preferred posting style? Oh,
wait, that's that dead guy everyone's on about?

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jan 25 '06 #6
Tim Rogers wrote:
Hi!
how do I get around the problem of safari failing to fit a table row to the
size of the text based content in the same was as IE does? For example if I
were to create a 5 row table add text in the <td> and style it via the <p>
tag, IE would collapse the table to fit the height of the said text. In
Safari in wont, so there is always unwanted padding in the table. This means
its hard to make neat tables in safari and they end up taking up twice as
much space as they should do!


You haven't indicated what doctype you are using or supplied any markup
or link so the difference in display could be a consequence of that.

I guess that you are referring to markup similar to this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>P padding test</title>
</head>
<body>
<table border="1">
<tr>
<td>Here is some text</td>
</tr><tr>
<td><p>Here is some text in a P</p></td>
</tr>
</table>
</body>
</html>
In IE, both the above rows will have the same height. In Firefox (and
some other browsers), the second row is about twice as high. If you
remove the doctype, Firefox will display the page just like IE does (I
don't know what Safari will do).

I'd suggest that you use the strict doctype (HTML 4 has been around for
6) and keep IE happy be adding the following CSS element to the head to
remove the padding and margin from P elements inside TD elements:

<style type="text/css">
td>p {padding:0; margin:0}
</style>
Removing the padding and margin from the td will 'collapse' it further.

--
Rob
Jan 25 '06 #7

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

Similar topics

2
by: Josh Renaud | last post by:
I'm working on a site and ran into a little trouble with Safari. Here are the relevant links: page: http://www.joshrenaud.com/fredbear/contact.html css: ...
2
by: Julian Jordan | last post by:
Hi I'm trying to write a system in which you can highlight some text in a form box, click a button (or press a key combination) and the text highlighted gets surrounded by a given html tag. ...
14
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
34
by: Simon Wigzell | last post by:
document...focus() will scroll the form to move the specified text field into view on everything I have tried it with except Safari on the MAC. The form doesn't move. Any work around? Thanks.
8
by: dd | last post by:
Hi, I've discovered a scenario where Safari 1.3 (I need to make my stuff compliant with 1.3+) gets confused about the scope of local variables WITHIN functions that were created in dynamic...
16
by: eholz1 | last post by:
Hello CSS group, I saw a beautiful effect that I would like to use either by CSS or using photoshop to create the image/effect (maybe even imagemagick) the site address is:...
6
by: marckatsambis | last post by:
Hi, Apologies in advance if this seems long winded and confusing... I'm trying to make a javascript drop down menu work around multiple iframes. The initial page...
3
by: Amir Michail | last post by:
Hi, I have bookmarklets with a # in their urls but safari changes the # to %23. And unfortunately, the bookmarklet does not work with %23. You need to change it back manually to #. Any...
4
by: fredsterss | last post by:
Hello all, built a simple site using a CMS combining MySQL for the back end and PHP to display it all. I have an admin page that has a form comprising of several textareas so the client can update...
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?
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
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
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...

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.