Page 1 of 1

CSS editing in editor - how do you tab

Posted: Wed Aug 16, 2006 11:17 pm
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

Re: CSS editing in editor - how do you tab

Posted: Thu Aug 17, 2006 5:35 am
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;
    }

Re: CSS editing in editor - how do you tab

Posted: Thu Aug 17, 2006 8:48 am
by Darwin Web Design
Thanks, I thought it would be some sort of combination of tab and another key.  :-\

Re: CSS editing in editor - how do you tab

Posted: Sat Aug 19, 2006 3:31 am
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.

Re: CSS editing in editor - how do you tab

Posted: Sat Aug 19, 2006 10:04 am
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.

::)