Evil's little friend Posted October 4, 2011 Posted October 4, 2011 Ok i am writing a story for one of my pets but i cant indent and it looks REALLY off <_< sooo can anyone give me and EXACT code to put in to indent or directions or do i have to keep slamming my head into the keyboard? :axehead: :sad02: Quote
snowwhite Posted October 4, 2011 Posted October 4, 2011 I haven't done any HTML in years, but I found this on the interwebs: For indenting text or a paragraph, the most commonly recommended method would be to use CSS. Below are different examples of how CSS can be used to indent text. Each of these examples below would be placed in-between your <head></head> HTML tags. The example below would create a style class named "tab" that would indent the text and paragraph 40 pixels from the left. <style> <!-- .tab { margin-left: 40px; } --> </style> Once the above code is in-between your <head> tags you can use it at any point by adding it to your paragraph (<p>) tags as shown below. <p class="tab">This is a tab</p> Quote
Evil's little friend Posted October 4, 2011 Author Posted October 4, 2011 i have no idea what you just did what is <head></head> HTML tags? Quote
Viridian Posted October 4, 2011 Posted October 4, 2011 What she said there is that you have to put this <style> <!-- .tab { margin-left: 40px; } --> </style> Between your style tabs (I think you already have them, they are your CSS). It basically means you created a function, and every time you enter that function the first sentence starts 40 pixels from the start of the page (therefore indenting) Every time you want to start a new paragraph, instead of <p>your information here</p>, enter <p class="tab">your information here</p> . Quote
LoveBunny Posted October 5, 2011 Posted October 5, 2011 i was just going to say hit the tab button on your keyboard. Oh well. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.