Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1414 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

A Validation test of PSD to XHTML providers

Thread title: A Validation test of PSD to XHTML providers
Closed Thread  
Page 2 of 3 < 1 2 3 >
    Thread tools Search this thread Display Modes  
02-27-2008, 05:09 AM
#11
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

What's so wrong with using inline styles? I use them all the time for minor things that don't warrant a completely new style. For example, div#main might not always need to be floated left, and div.contentHeader could only need the top margin for the first one.

Also, validation, though it looks good, doesn't mean a site is better than another. I could write crappy code, but still get it to validate, but that doesn't mean it is good code.

02-27-2008, 06:16 AM
#12
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

A second class would better serve than an inline style; if your style is inline then down the road you have to edit the HTML to remove it rather than just change the css file.

02-27-2008, 07:07 AM
#13
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

It really depends on how the site is structured. Having it in the HTML could be as fast to edit as in the CSS.

02-27-2008, 07:10 AM
#14
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

Originally Posted by Andrew R View Post
What's so wrong with using inline styles? I use them all the time for minor things that don't warrant a completely new style. For example, div#main might not always need to be floated left, and div.contentHeader could only need the top margin for the first one.
Then you make a new class, that just floats left.

Inline styles are a bad habit. It's all about separation of content and style.


1. Inline styles don't separate content from design
In fact, inline styles are exactly the same as embedded font tags and other design tags that we're trying to stop using. The styles only affect the exact tag they are applied to, and while that might give you more control, it also makes other aspects of your design and development more difficult.
2. Inline styles cause more maintenance headaches
When you're working with style sheets, it can sometimes be very difficult to figure out where a style is being set. When you add a mixture of inline, embedded, and external styles and you have even more locations to look. And if you work on a Web design team or have to redesign or maintain a site built by someone else, then you're going to have even more trouble. Then, once you find the style and get rid of it, you'll have to get rid of it on every element on every page where it's been placed. Which can increase your maintenance work astronomically.
3. Inline styles are not as accessible
While a screen reader or other assistive device might be able to handle the attributes and tags effectively, some of the older devices don't and can result in some strange Web pages. Plus, the extra characters and text can affect how your page is viewed by a robot such as a search engine, so your page optimization would not do as well as a page with external style sheets.
4. Inline styles make your pages bigger
If you set a style on every paragraph on your site, you can do it once with like 6 lines of code and an external style sheet. But if you do it with an inline style, you'll have to add those styles to every paragraph of your site. If you have 5 lines of CSS, that's 5 lines multiplied by every paragraph on your site. That bandwidth can add up in a hurry.
http://webdesign.about.com/od/css/a/aa073106.htm

02-27-2008, 07:17 AM
#15
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

Originally Posted by Mike Roq View Post
Then you make a new class, that just floats left.

Inline styles are a bad habit. It's all about separation of content and style.


http://webdesign.about.com/od/css/a/aa073106.htm
You should refrain from giving others advice on how to do things until you can do them correctly yourself.

02-27-2008, 07:21 AM
#16
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

I know! I use inline styles EVERYWHERE.

02-27-2008, 07:34 AM
#17
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old

Originally Posted by Mike Roq View Post
I know! I use inline styles EVERYWHERE.
Sarcasm is an ugly color on a person when they are trying to save face.

I was talking about the nightmare you created on your site (and then removed very quickly after I posed it....

HTML Code:
        <div id='nav'>
		<a href='/'>Home</a>

		<a href='/portfolio/' >Portfolio</a>
		<a href='/services/' >Services</a>
		<a href='/clients/' >Client Area</a>
		<a href='/contact/' >Contact</a>
		<a href='/about/' >About</a>
	</div>
HTML Code:
Welcome!<br /><br />
I'm Mike Roquemore, and If you have come here looking for some Web Design or coding work, then you have come to the right place. 
I entered the freelance field over 2 years ago, and I bring experiance from designing / coding my personal sites, previously running web hosting companys, 
and my knowledge of Computers and the Internet.	
<br /><br />
If you are looking to get some work done, head on over to my Services page. There you can get a sample of my pricing. If my low prices doesn't sell you, check
out my Portfolio for my coding and design work.
<br /><br />
Thank You,<br /><br />

Mike Roquemore	<p>				  
<br />
wtf?

02-27-2008, 07:38 AM
#18
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

First off, I put that up last year, didn't even finish coding it. Because your such a great coder.

If your looking at the double spaces in the <a> thats due to a extra space in my PHP. Step off your throne much?

02-27-2008, 07:47 AM
#19
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Originally Posted by Mike Roq View Post
First off, I put that up last year, didn't even finish coding it. Because your such a great coder.

If your looking at the double spaces in the <a> thats due to a extra space in my PHP. Step off your throne much?
Honestly, if you didn't finish coding it, why did you even put it up?

02-27-2008, 07:49 AM
#20
mikeroq is offline mikeroq
mikeroq's Avatar
Status: Member
Join date: Feb 2006
Location: Ponca City, OK
Expertise: xHTML/CSS/PHP/Computer Tech
Software: Photoshop, Notepad++, Winamp
 
Posts: 332
iTrader: 5 / 100%
 

mikeroq is an unknown quantity at this point

Send a message via AIM to mikeroq Send a message via MSN to mikeroq Send a message via Yahoo to mikeroq

  Old

I was in a hurry, no one really visits anyway. Once it was up, I moved on to the next thing to code.

Closed Thread  
Page 2 of 3 < 1 2 3 >


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed