...

View Full Version : Tab Problems



chamith7
01-04-2004, 05:41 PM
On my website I am using this blank image that is about 27 pixels wide and 8 tall and I put this at the start of my paragraphs, but it seems unnecessary. Is there a better way, without using images, to have an approximately 27 pixels tab?

http://www.geocities.com/chamith7 if you want to see the tabs. My image is only 56 bytes, but I figure I'm being stupid about the whole thing.

me'
01-04-2004, 07:23 PM
Indeed:
p { text-indent: 27px; }

coothead
01-04-2004, 07:36 PM
Hi there chamith7,

me' has given you
the skeletal answer. Just in case you are not sure
what to do with it put this between the <head> tags

<style type="text/css">
<!--
p
{
text-indent:27px;
}
//-->
</style>

and this is how your first two paragraphs should look

<b>THE HOMEWORK INCIDENT - 4 January 2004</b>
<p>I had a lot of homework to do, so I went to my desk and got out
a few pencils and my school work. I sat at my desk, for what
seemed like an hour, just moving my gaze from my pencils,
to the paper, and back to the pencils. It was getting late, so I
decided that I had better just get to bed.</p><br /><br />

<b>THE THINKING ABOUT SCHOOL INCIDENT - 3 January 2004</b>
<p>I was thinking about how I have school next week. Then I thought,
<I>I don't really like school</I>. And then I realized that I also have
school the week after that. The point I'm trying to make is this,
school happens.</p><br /><br />

c:D:Dthead

me'
01-04-2004, 07:43 PM
But without the <br /> tags between the paragraphs. Also, consider using a header tag like <h6> instead of the <b> tags you're currently using to the same effect.

chamith7
01-04-2004, 09:05 PM
Thanks a lot for the help. I guess these are called stylesheets, and I don't have any familiarity with them, so can you tell me what to add to that code so that the paragraphs are in the verdana font and size 10?

me'
01-04-2004, 09:07 PM
Simply add font: 10pt verdana inside the { and } in your current code.

This is something called CSS, and it rocks. Learn it soon (http://www.w3schools.com/css/default.asp).

dodgerida67
01-07-2004, 04:07 AM
Use tables or Cascading style sheets.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum