NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page HTML Problem

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-07-2007, 06:08 AM THREAD STARTER               #1 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
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, 09:03 AM   #2 (permalink)
JFS
NamePros Regular
 
JFS's Avatar
Join Date: Oct 2005
Location: Portugal
Posts: 800
JFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to allJFS is a name known to all
 



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
JFS is offline  
Old 05-07-2007, 09:11 AM THREAD STARTER               #3 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
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, 09:16 AM   #4 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
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
stscac is offline  
Old 05-07-2007, 09:21 AM THREAD STARTER               #5 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
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, 10:36 AM   #6 (permalink)
NamePros Member
 
jabba_29's Avatar
Join Date: Mar 2007
Location: Finland
Posts: 29
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 ?

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!
????: NamePros.com http://www.namepros.com/programming/325079-html-problem.html

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, 11:08 AM THREAD STARTER               #7 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
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, 07:54 PM   #8 (permalink)
NamePros Member
 
jabba_29's Avatar
Join Date: Mar 2007
Location: Finland
Posts: 29
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....
????: 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 &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, 01:24 AM THREAD STARTER               #9 (permalink)
Senior Member
 
dc1pop's Avatar
Join Date: Dec 2004
Location: UK
Posts: 1,893
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, 02:06 PM   #10 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:33 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger