[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 05-07-2007, 05:08 AM   #1 (permalink)
Senior Member
 
dc1pop's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 1,894
110.80 NP$ (Donate)

dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold


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.
dc1pop is offline  
Old 05-07-2007, 08:03 AM   #2 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 760
56.85 NP$ (Donate)

JFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really niceJFS is just really nice


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>
it would help if you close down the tags properly.
__________________
Joćo Fernandes Silva
Selling :
19P.ORG - ARCADEHITS.ORG - AZIAN.NET - COREFANS.COM - CTUTORIALS.NET - DEDISEEK.COM - HITCHECK.COM - HOST15.COM - HOSTCUSTOMER.COM - LARGETIPS.COM - SCRIPTCANDY.COM - VISUALBOOK.NET - VOXVPS.COM / .NET - WALLPAPERSARENA.COM
JFS is offline  
Old 05-07-2007, 08:11 AM   #3 (permalink)
Senior Member
 
dc1pop's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 1,894
110.80 NP$ (Donate)

dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold


Well ive fixed that and it hasnt made a difference. Thanks for taking the time to look over the code though.
dc1pop is offline  
Old 05-07-2007, 08:16 AM   #4 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of


The overlap on the right side is the amount you've moved from the left, it appears. You can choose to reduce the width of the "news boxes" or convert to a variable width (ex. %).

-Steve
__________________
Follow Me on Twitter:
stscac is offline  
Old 05-07-2007, 08:21 AM   #5 (permalink)
Senior Member
 
dc1pop's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 1,894
110.80 NP$ (Donate)

dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold


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?
dc1pop is offline  
Old 05-07-2007, 09:36 AM   #6 (permalink)
NamePros Member
 
jabba_29's Avatar
 
Join Date: Mar 2007
Location: Finland
Posts: 29
5.00 NP$ (Donate)

jabba_29 is an unknown quantity at this point


Validate your code: oops
There is no point trying to get others to sort the look until all the important errors are gone. Why ?

Quote:
Originally Posted by sitepoint
Why should we spell-check our text before publishing it on the web? Because mistakes and errors can confuse readers and detract from the important information. The same can be said for markup. Invalid markup can confuse browsers, search engines and other user agents. The result can be improper rendering, dysfunctional pages, pages that remain unindexed by the search engines, program crashes or the end of the universe as we know it!

If our page doesn't display the way we intended, we should always validate our markup before we start looking for other problems (or asking for help on SitePoint). With invalid markup, there are no guarantees.
You start off badly - no DTD or <html> tags.
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 &nbsp; incorrectly written (?) you have
Code:
alt"Stadium Guide Logo"
missing the =
__________________
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.
jabba_29 is offline  
Old 05-07-2007, 10:08 AM   #7 (permalink)
Senior Member
 
dc1pop's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 1,894
110.80 NP$ (Donate)

dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold


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,
dc1pop is offline  
Old 05-07-2007, 06:54 PM   #8 (permalink)
NamePros Member
 
jabba_29's Avatar
 
Join Date: Mar 2007
Location: Finland
Posts: 29
5.00 NP$ (Donate)

jabba_29 is an unknown quantity at this point


Quote:
I dont generally follow web standards as very few sites do (although i know really i should).
Yes, you should....

The error about the ampersand is not a biggie. It just means you should write them out like &amp; 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.
jabba_29 is offline  
Old 05-08-2007, 12:24 AM   #9 (permalink)
Senior Member
 
dc1pop's Avatar
 
Join Date: Dec 2004
Location: UK
Posts: 1,894
110.80 NP$ (Donate)

dc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to beholddc1pop is a splendid one to behold


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.
dc1pop is offline  
Old 05-08-2007, 01:06 PM   #10 (permalink)
NamePros Regular
 
monaco's Avatar
 
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 695
314.80 NP$ (Donate)

monaco will become famous soon enough


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 ^^).
__________________
My Website | My Blog
monaco is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:05 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85