CSS editing in editor - how do you tab

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

CSS editing in editor - how do you tab

Post by Darwin Web Design »

Hi there
This is just something I've wondered for awhile and is probably a very basic question  :-\

How do you 'tab' in the editor in the stylesheet section.  When I edit the existing styles, they end up so messy I cannot read them because I haven't worked out to tab across.  So half of it is neatly tabbed/indented with my additions just sitting there on the margin.

It's not a huge problem, but I like to be neat and tidy.  8)

Thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: CSS editing in editor - how do you tab

Post by Dr.CSS »

If you mean in a style sheet or so and you want...

    div#content {
        position: relative;
        margin: 1.5em auto 2em 0;
        padding: 0;
        text-align: left;
    }

and not...

    div#content {
        position: relative;
margin: 1.5em auto 2em 0;
        padding: 0;
        text-align: left;
    }

then...

    div#content {
        position: relative;
spacebar,spacebar,spacebarmargin: 1.5em auto 2em 0;
        padding: 0;
        text-align: left;
    }
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: CSS editing in editor - how do you tab

Post by Darwin Web Design »

Thanks, I thought it would be some sort of combination of tab and another key.  :-\
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: CSS editing in editor - how do you tab

Post by Elijah Lofgren »

Aussie Gecko wrote: Thanks, I thought it would be some sort of combination of tab and another key.  :-\
Unfortunently not. One thing you could do is copy and paste a "TAB" char from another line.
The Konqueror web browser (for KDE on Linux) has the ability to insert "TAB" chars using the "Tab" button in textareas if you right click in the textarea and choose "Allow Tabulations". I don't know of any other browser that has this feature though.

Another idea is to copy and paste the stylesheet into a text editor and then back in.
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: CSS editing in editor - how do you tab

Post by Darwin Web Design »

Thanks
I'll just do the spaces, that's ok - just making sure I'm doing things the right way and getting into good habits.  When I copy my style sheets from Dreamweaver the tab indent is very deep, I would say 7-10 spaces, hence I thought there might be a way to 'tab' like in Dreamweaver or a text editor.

::)
Post Reply

Return to “Layout and Design (CSS & HTML)”