13 replies [Last post]
leebo
Offline
newbie
Last seen: 13 years 49 weeks ago
Joined: 2005-10-08
Posts: 4
Points: 0

Could anyone have a look and tell me where Ive gone wrong?
I cant get this table to sit inside a div in firefox although it will in safari and IE (pc)

sorry to ask but Ive tried everywhere else.

littlename.co.uk/3.htm

larmyia
Offline
Elder
London
Last seen: 11 years 1 week ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

hi there and welcome to the forum.

I'm afraid I don't have any quick solution for you and you're probably not going to like what I have to say...but...you have a lot of issues. you are missing a doctype (and other information, but the doctype is the most important). you really need to get one into place.

your website is built with tables. as you've got a css style sheet I'm not really sure why you'd choose to do that...? on this forum the regular members promote semantically written, well formed, accessible, css-p website development. there are many reasons for this but with regards to your problem, it certainly makes problem solving easier. as does validating your html and css. yours is riddled with errors. one of these errors could be what's causing your problems.

I hope that you'll stick around. this is a good place for learning.

maybe someone else will be able to offer you a more tangible solution.

larmyia

edited missuse of the word table Smile

leebo
Offline
newbie
Last seen: 13 years 49 weeks ago
Joined: 2005-10-08
Posts: 4
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

oh erm.
*cough

this is why i avoid forums.

still I greatly appreciate you letting me know.

the tables are beacuse its a quick way of getting a good design out of fireworks and onto a page. Ive used css to position the content to the left.
Ill look into it elsewhere and maybe i can sort it out.

thanks again

Anonymous
Anonymous's picture
Guru

Cross Browser compliant?Firefox doesnt act like IE & Saf

larmyia wrote:
...your table is built with tables...
Uh, what do you build them with? :? :? :? Laughing out loud Wink

larmyia
Offline
Elder
London
Last seen: 11 years 1 week ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

leebo wrote:
the tables are beacuse its a quick way of getting a good design out of fireworks and onto a page.

css is just a quick, if not quicker Smile

good luck anyway!

larmyia

larmyia
Offline
Elder
London
Last seen: 11 years 1 week ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

Triumph wrote:
larmyia wrote:
...your table is built with tables...
Uh, what do you build them with? :? :? :? Laughing out loud Wink

thanks Triumph :roll: I meant website. I shall go and correct it now. it's late.

I'm off to bed.

Laughing out loud

larmyia

leebo
Offline
newbie
Last seen: 13 years 49 weeks ago
Joined: 2005-10-08
Posts: 4
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

larmyia wrote:
leebo wrote:
the tables are beacuse its a quick way of getting a good design out of fireworks and onto a page.

css is just a quick, if not quicker Smile

good luck anyway!

larmyia

hmmm....but then theres all that trouble with transparency! eesh nowts easy is it!.
Smile

ps. how do i know what doc type to use? Ive been to w3c and it doesn t really make it obvious.

n8gz4ez
n8gz4ez's picture
Offline
Leader
Last seen: 10 years 34 weeks ago
Timezone: GMT-6
Joined: 2005-06-13
Posts: 802
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

Hi leebo,

Add this to your css file, it will give you your desired results.

td { 
  margin: 0px; 
  padding: 0px; 
  line-height: 7px; 
}

This is my big chance . . . yep, I blew it . . .

drhowarddrfine
Offline
Leader
Last seen: 9 years 42 weeks ago
Timezone: GMT-6
Joined: 2005-05-21
Posts: 764
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

IE7 is 10 years behind the standards or wrong.
But it works in IE!
IE is a cancer on the web -- Paul Thurott

Anonymous
Anonymous's picture
Guru

Cross Browser compliant?Firefox doesnt act like IE & Saf

larmyia wrote:
I'm off to bed.

Laughing out loudG'night! Smile

larmyia
Offline
Elder
London
Last seen: 11 years 1 week ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

Triumph wrote:
larmyia wrote:
I'm off to bed.

Laughing out loudG'night! Smile

and I wake up to your new avitar :roll:

what's going on there?

Laughing out loud

Anonymous
Anonymous's picture
Guru

Cross Browser compliant?Firefox doesnt act like IE & Saf

I'm a Preity Zinta fan. She's adorable.

leebo
Offline
newbie
Last seen: 13 years 49 weeks ago
Joined: 2005-10-08
Posts: 4
Points: 0

Cross Browser compliant?Firefox doesnt act like IE & Saf

n8gz4ez wrote:
Hi leebo,

Add this to your css file, it will give you your desired results.

td { 
  margin: 0px; 
  padding: 0px; 
  line-height: 7px; 
}

thanks for that, its worked perfectly.

I have written sites totally in css but couldnt see how I could use such a large image as a background (because of file sizes), or slice it up and then position it in css succesfully. hence the tables job.

Im may look into it. although. I'm at a loss where to start to position so many gifs.

Also when it comes to DTDs , thanks for the link. Although I had found that page, it doent make it clear what one to use in what situation etc.
I suppose thats just learnt through trial and error? or can i find a more detailed description of each DTD usage?

anyway, thanks to all whove looked and posted.
Lee

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 1 year 5 weeks ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9668
Points: 801

Cross Browser compliant?Firefox doesnt act like IE & Saf

leebo wrote:

Also when it comes to DTDs , thanks for the link. Although I had found that page, it doent make it clear what one to use in what situation etc.
I suppose thats just learnt through trial and error? or can i find a more detailed description of each DTD usage?

anyway, thanks to all whove looked and posted.
Lee

what's wrong with having a gander at our How-To section?

http://www.csscreator.com/css-forum/ftopic11242.html

Verschwindende wrote:
  • CSS doesn't make pies