Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Still Using Inline Styles?

  1. #11
    alvarez16 is offline Junior Member
    Join Date
    Oct 2008
    Posts
    17

    Default

    Takes a lot longer time :/

  2. #12
    Divisive Cottonwood is offline Junior Member
    Join Date
    Sep 2007
    Posts
    13

    Default

    I can't think of any circumstances where I would use inline CSS... it has to be external all the time.

  3. #13
    BlueBoden's Avatar
    BlueBoden is offline Member
    Join Date
    Nov 2008
    Posts
    72

    Default

    Well i would say its fine for testing purposes, as well as single situations. Sometimes its simply more practical to use the style attribute.

    I often use inline styles when testing new styles, and it can take quite some time for me to add them to the stylesheet.


    One thing to remember however, using inline styles wont have any effect on your placement in the search engines like some beginners suggest, they often also claim xhtml to improve your ranking which simply isn't true.

    So when practical use inline styles, and avoid a cluttered css file with styles that only effect a few situations on your page.


    Clearing floats would be fine to do inline, but you could alternatively have a clearing class, if you ain't the only one working on the layout, and/or if your site where to support more then one layout through stylesheets.


    Also keep in mind that external stylesheets are cached by the browser, embedded and inline styles ain't.
    Last edited by BlueBoden; 11-10-2008 at 02:38 PM.

  4. #14
    SiteSmart is offline Junior Member
    Join Date
    Feb 2009
    Posts
    12

    Default

    In some cases I have not been able to achieve the functionality I want without using an inline style... I try and stay away as much as possible though.

  5. #15
    shaundiamonds's Avatar
    shaundiamonds is offline Junior Member
    Join Date
    Mar 2009
    Location
    United Kingdom
    Posts
    17

    Default

    It makes no difference to SEO.

  6. #16
    azseoguy is offline Junior Member
    Join Date
    May 2009
    Posts
    12

    Default

    haha that's funny, I am guilty of the same thing. Only after I have got the exact styles that I want, do i go back and cut out the inline stuff and make classes in an external. Old habits die hard, right?

  7. #17
    kieransimkin is offline Junior Member
    Join Date
    Jun 2009
    Location
    Brighton, UK
    Posts
    20

    Default

    I'm the same - I often develop my code with CSS inline (this is particularly helpful when you're working on AJAX). Then move them out to a separate CSS file afterwards. The only time I leave inline styles in place is when they're required for the scripting I'm doing - when working with a javascript effects library like scriptaculous; I'll often find that I have to leave the styles inline in order to have Javascript modify them on the fly.

    It's worth noting why we have external stylesheets in the first place - it speeds load times for your pages. Once your stylesheet is loaded for one page, it doesn't then have to be re-downloaded for subsequent pages, which means that your HTML files are smaller, so less to download.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124