Jump to content


Photo

Line height html??


  • Please log in to reply
4 replies to this topic

#1 Rustyhands

Rustyhands

    Member

  • Member
  • PipPipPip
  • 73 posts
  • LocationAustralia

Posted 10 May 2011 - 05:58 AM

hi everyone :)

im looking to change the height of the text on my content text. im not sure of the code or where to put it???


cheers rusty
  • 0

#2 BeeDev

BeeDev

    Advanced Member

  • Member
  • PipPipPipPip
  • 336 posts

Posted 10 May 2011 - 08:46 AM

CSS properties "line-height" or "font-size"

You do know how to write CSS right? I hope that's not what you're asking.
  • 0

#3 grabenair

grabenair

    Advanced Member

  • Member
  • PipPipPipPip
  • 361 posts
  • LocationIowa

Posted 10 May 2011 - 03:45 PM

not for sure what you want but I think.


css
#content{
line-height:5px; (for example)
}

html

<div id="content">The css will put all text at 5px spacing vertically.</div>

There are other ways like setting a paragraph margin in your css, which is what I do.
Hope this helps.
  • 0
Standards will change. But your website needs to remain in serving its audience.
My Portfolio site

#4 madhusmita

madhusmita

    Member

  • Member
  • PipPip
  • 23 posts

Posted 27 May 2011 - 02:47 AM

<font size="5" face="arial" color="red">

The line of code will help to change the height of the text.The size of the font can be changed according to you need.Otherwise you can use the above method in CSS for doing the same.IN HTML you need to write this code again and again while required. But in CSS you can apply the code any where just by linking.
  • 0

#5 Andrea

Andrea

    Advanced Member

  • Moderators
  • 5,718 posts
  • Facebook:https://www.facebook.com/aandbwebdesignAB
  • LocationSan Antonio, TX

Posted 27 May 2011 - 04:26 AM

<font size="5" face="arial" color="red">


The font tag is deprecated and should not be used. Stick with the CSS method.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users