How to fix table columns in HTML to work in safari and other browsers?
Chris
2011-08-10 01:56:54 UTC
I have finalised my website and now uploaded to the world wide web, now I'm using a MacBook Pro i've been using Safari browser and for some reason the table columns included in some of the pages appear differently and not how i coded them when i using/viewed in IE9 browser
Any suggestions on code fixes or other reasons why this could be happening
Kind Regards
Four answers:
SilverTonguedDevil
2011-08-10 02:51:56 UTC
In your code, you have:
That's wrong because you haven't learned that with few exceptions (such as the tag), an opening tag needs a closing tag. By that I mean
will have
to close it and your text or other content between them. Also, you coded your attribute as if it were a tag by itself (). You need the attribute to be inside the tag, like this:
Text for cell
You need to either use a WYSIWYG editor (links below) that will do the coding for you, or spend a few dozen hours studying the way to code.
I do not recommend using any version of Internet Explorer as a test of HTML code. IE does not comply with standards. Use Firefox or Safari, and get the page to work in those. Then IE will likely show the page fine. Asking IE to be the test of HTML code is like asking Pa Kettle to be the test of hard work.
Jeremy
2011-08-10 02:01:36 UTC
Different browsers will render pages differently. It's a common problem web designers are always having to deal with. If you are working with plain html then you can set the column width like this:
stuff
where px is pixels, or
stuff
where you give a percentage of the width of the container.
Dominic
2011-08-10 02:05:13 UTC
Due to differences in how web browsers render a page, your page will look different. You could tear your hair out trying to get them all to do what you want.
Without posting your HTML and CSS, there's no way to tell why it's doing what it's doing. You could paste a sample HTML and CSS documents to pastebin.com and post the link to see if anyone can see where things might be going wrong.
villeneuve
2016-12-11 12:01:10 UTC
I easily have Firefox, Google Chrome, Opera, and internet Explorer all put in. My husband is going to college for computers and presented me to Opera. it rather is lots quicker than any of the others. for college, I might desire to apply internet Explorer to get entry to their portal. it is so stressful and it takes lots time to load something.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.