| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Dec 2004 Location: UK
Posts: 1,893
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | HTML Problem Im creating a website and im currently having a small issue. Im trying to add a margin between a table and an outer border. This margin works fine on the left hand side but not on the right hand side. The site looks fine in firefox and works perfectly as i imagined it would. However in internet explorer this is not the case and it just cuts part of it off. You can see by checking the site below what i mean: Site If anyone knows how i can fix this problem in internet explorer id be very greatful. Thanks. |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Oct 2005 Location: Portugal
Posts: 800
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Code: <!-- Parses the information from the date column in the database to this cell --> <td> <div class="date">This news was posted on: 2007-02-01 <div> <-- this should be a close div not a open one </td>
__________________ Joćo Fernandes Silva |
| |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Dec 2004 Location: UK
Posts: 1,893
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Il have a look into doing that now steve. It seems ive managed to fix the news page however the rest of the site hasnt reflected it in the same way which is just as strange. Think ive found the problem. When a table is in the <div> class tages and set to 100% width in internet explorer it makes it to wide (even when ive set the margin to be 5px from the main outside border. When the table is set to 99% width it is fine and the margin is read fine aswell. Any one know why this could be? |
| |
| | #6 (permalink) | ||||
| NamePros Member Join Date: Mar 2007 Location: Finland
Posts: 29
![]() | Validate your code: oops There is no point trying to get others to sort the look until all the important errors are gone. Why ?
If you don't use a DTD, then the browser needs to guess a bit what is coming to it. It also throws the browser into quirks mode, this leads to difficulties in consistency between browsers... Fix Your Site With the Right DOCTYPE I would avoid using the windows character set too.. Admittedly, most errors seem to be related to incorrectly written (?) you have Code: alt"Stadium Guide Logo"
__________________ Regards Jamie Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. | ||||
| |
| | THREAD STARTER #7 (permalink) |
| Senior Member Join Date: Dec 2004 Location: UK
Posts: 1,893
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | My mistake missing the <html> tag, which i have now duley fixed. Looking up validation and always getting this error: "This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details." I dont understand this as its a link to another page on the site. I dont generally follow web standards as very few sites do (although i know really i should). Any help is appricated, |
| |
| | #8 (permalink) | ||||
| NamePros Member Join Date: Mar 2007 Location: Finland
Posts: 29
![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=325079 The error about the ampersand is not a biggie. It just means you should write them out like & instead of just &. You still have no DOCTYPE though ... see link in previous post. I can't quite figure out why you are actually using tables for this site and I think you are suffering a bit from divitis
__________________ Regards Jamie Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. | ||||
| |
| | THREAD STARTER #9 (permalink) |
| Senior Member Join Date: Dec 2004 Location: UK
Posts: 1,893
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks again, i think it might be better to re-template the whole site which isnt to much of a problem. Im workin gon it locally which is why you cant see all changes currently ![]() Thanks for your help. Appricated. |
| |
| | #10 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: Tucson, AZ
Posts: 689
![]() | Yeah, I agree with the above posts with regard to compliance with standards...if a site looks weird in IE or FF or anything, the first thing you ought to do is run it through a syntax checker and a w3c compliance checker. This makes sure your HTML is completely standards compliant, which (for me) has fixed 99 percent of my issues (forgetting to close div's is a huge problem for me, apparently ^^). |
| |