Jump to content


Photo

tabs in html/xhtml?


  • Please log in to reply
4 replies to this topic

#1 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 30 September 2006 - 07:08 AM

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?

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 September 2006 - 12:06 PM

Use four non-braking spaces - & nbsp; (without the space before &)

Not sure what you mean though.

#3 DarkHavn

DarkHavn
  • Members
  • PipPipPip
  • Advanced Member
  • 69 posts

Posted 30 September 2006 - 12:23 PM

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

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 30 September 2006 - 12:48 PM

Prehaps you want to use the preformatted text tag:
<pre>   hey what every i place in
    here is what will be


                    shown in
the

        browser!</pre>


#5 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 01 October 2006 - 09:22 AM

Put it in pre tags or use the the CSS white-space attribute.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users