Jump to content

Archived

This topic is now archived and is closed to further replies.

DarkHavn

tabs in html/xhtml?

Recommended Posts

Just wondering if its possible to tab the content in the source code, and the way it is tabed in the source is the way it will appear in the browser?

Instead of using the spacebar all the time, is it possible to use the tab key?

Share this post


Link to post
Share on other sites
Use four non-braking spaces - & nbsp; (without the space before &)

Not sure what you mean though.

Share this post


Link to post
Share on other sites
Just incase that's not what i was after, what i mean was, instead of moving text along with div's, is it possible to tab content, so when its displayed in the browser, its been tabed like in the source code?

example

nonetabtxt
                    tabtxt

Share this post


Link to post
Share on other sites
Prehaps you want to use the preformatted text tag:
[code]<pre>  hey what every i place in
    here is what will be


                    shown in
the

        browser!</pre>[/code]

Share this post


Link to post
Share on other sites
Put it in pre tags or use the the CSS [tt]white-space[/tt] attribute.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.