0

Hi,
I use a code to format my paragraphs

p.style1{ 
   font-family: Tahoma,Geneva,Kalimati,sans-serif;
   font-size:13px;
   text-align:justify;
}

But I would like to have 3 spaces ( ) in the begining of every paragraph.
Also, I would like the first letter of every paragraph to be xxlarge size.

Could someone help me ??

Thanks

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by almostbob
0

do not set font size in px
on Your screeen it looks great,
on any screen res other than yours it looks like ** expletive deleted**
as well its not being compliant with w3c standardsthe text may be rendered invisibly small or annoyingly largescreen fonts are measured correctly in ems and %, both relative sizes in comparison to the basefont set by the user on the user's system.
anyhow

p.style1{  font-family: Tahoma,Geneva,Kalimati,sans-serif;  font-size:100%;  text-align:justify; }
p.style1:first-line { /* nothing here  dont need it in this case*/}
p.style1:first-letter { padding-left:1em; font-size:200%; float:left; }

pseudo elements in the css standard.
this version tested in IE, float left probably drops the cap too far in mozilla browsers
but this is intended to point you to the solution,
good luck and experiment with this w3c tutorial

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.