Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: Could be a CSS thing? (Spacing)

date posted 17th May 2006 23:01

That's some good advice about IE and whitespace, I've not had any problems
with whitespace in other browsers besides IE.

In theory when browsers render html or xhtml tags they 'should' only
recognise the first space and parse the next tag or character.

With reference to your question, just because you see source code as having
lots of spaces in between them, bear in mind most good developers structure
their code to look a certain way to ease readability for example:


para text


However it shouldn't make the slightest bit of difference how you put
whitespace in your code you might want to do it like this:



Bla blab la



It shouldn't make any difference to the display of your page, but like Tony
stated there are certain incidents that IE (
>> I see a lot of sites which do use tabs for spacing in the code
>> and big sites, particularly, are very hard to follow when there
>> is so much code. As far as I know, there is no absolute
>> standard for spacing in code, but am I wrong?
>
> No absolute standard per se, but I had a weird experience with IE recently
> where a horizontal list-based navigation (LI tags) were getting an extra
> space on the left of each LI. This turned out to be IE's interpretation of
> the nicely laid out code that my IDE produced. I manually removed ALL the
> spacing and everything came out on screen as planned, although the code is
> almost unreadable now!


IE is quite picky about whitespace, especially in lists...

in some circumstances you can resolve the problem with a bottom border
on the and still have nicely formatted code.

alternatively you can put the white space after the opening like
this:



Test link
another link



not sure which is worse!



--
Join me: http://wiki.workalone.co.uk/
Thank me: http://www.amazon.co.uk/gp/registry/1VK42TQL7VD2F
Engage me: http://www.boldfish.co.uk/portfolio/


--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.

To advertise here: http://www.freelancers.net/advertising.html



Messages by Day
May 31st 2006
May 30th 2006
May 29th 2006
May 28th 2006
May 27th 2006
May 26th 2006
May 25th 2006
May 24th 2006
May 23rd 2006
May 22nd 2006
May 21st 2006
May 20th 2006
May 19th 2006
May 18th 2006
May 17th 2006
May 16th 2006
May 15th 2006
May 14th 2006
May 13th 2006
May 12th 2006
May 11th 2006
May 10th 2006
May 9th 2006
May 8th 2006
May 7th 2006
May 6th 2006
May 5th 2006
May 4th 2006
May 3rd 2006
May 2nd 2006
May 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000