Guest fubar::chi Posted September 19, 2003 Share Posted September 19, 2003 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 Link to comment Share on other sites More sharing options...
anomaly Posted September 21, 2003 Share Posted September 21, 2003 Why not just use 's Link to comment Share on other sites More sharing options...
illogic-al Posted September 21, 2003 Share Posted September 21, 2003 because css is the way man. far ouuuuuuuuuut. and because css makes it easier. Link to comment Share on other sites More sharing options...
mystified Posted September 21, 2003 Share Posted September 21, 2003 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. Link to comment Share on other sites More sharing options...
illogic-al Posted September 21, 2003 Share Posted September 21, 2003 just checked and realized it doesn't work for me either. it only works when placed between the head tags <head> p { text-indent: 1cm; } </head> Link to comment Share on other sites More sharing options...
illogic-al Posted September 21, 2003 Share Posted September 21, 2003 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. Link to comment Share on other sites More sharing options...
scoopy Posted September 21, 2003 Share Posted September 21, 2003 check this page out: http://www.w3schools.com/css/css_background.asp It gives all the specifics and examples on how it works. Try using konq, I have been having problems with mozilla... It is not supported in netscape 4, but I think should work with a newer mozilla... haven't quite figured out my problem yet. Link to comment Share on other sites More sharing options...
illogic-al Posted September 21, 2003 Share Posted September 21, 2003 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now