Jump to content
Sign in to follow this  
Guest fubar::chi

paragraph indents! They do exist!

Recommended Posts

Guest fubar::chi

me and some other peopel ( i forget who) were talking on mub the other day and someone asked (prolly scoopy) how to put paragraph indents into an html file. Someone else (maybe LiquidZoo) and me said it couldn't be done with spaces. We were right, but we were wrong. CSS! That beautiful, magical wonderful thing brought to us by thw W3C can do it too!

 

I was checking http://www.w3schools.com/ after wurfing around the Master's trinity and came upon the link.

 

here's how it's done

p {

text-indent: 1cm;

}

you can do it in px, em, in and whatever else you want but there you have it.

An indented paragraph by css

Share this post


Link to post
Share on other sites

I just read about that myself last night! But for some reason css doesn't like me. I insert the code exactly the way I'm supposed to and it still won't work half the time. :cry:

Share this post


Link to post
Share on other sites

actually it does work. I was linked to the wrong style sheet which is why it wouldn't show up unless i did an inline style.

I can't however seem to get this to work

background-image: url()

could anyone try this and see if its supported.

Share this post


Link to post
Share on other sites

that's what i was looking at. i can't get it to display in konqueror or mozilla though.

What I'm trying to do is set the background of a <th> header but it won't work wherever i put it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...