Font Tag?
Page 1 of 1 • Share
- SeabodyMember
- Forum Posts : 9
Member Since : 2012-03-30
Since the Font tag has been deprecated, I am searching for a replacement for my new forum. Editing my CSS is (I believe) out of the question, and the Div tag doesn't give the result I want (it inserts a line break above and below it, which is not what I want) - what tag can replace the font tag?
- Vanilla990Administrator
- Forum Posts : 114
Member Since : 2011-10-30
I'm struggling to understand what you are asking for help with.
Are you trying to work out a way of changing the type of font used on your forum?
Are you trying to work out a way of changing the type of font used on your forum?
you can replace font tags using css and div's.. if it adds a line break it shouldnt..
here's all the css youd need to know.
here's all the css youd need to know.
- Code:
<div class="font">random</div>
- Code:
.font {
font-size: --px;
font-family: 'Georgia', Arial, Serif;
line-height: 125%;
color: #000;
- LGforumModerator
- Forum Posts : 77
Member Since : 2011-11-12
A DIV may appear as causing line breaks due to it naturally rendered style of display:block. DIV's have 'block' display property unless set other wise, its known as a block element.
A SPAN is an inline element, which you may prefer.
A SPAN is an inline element, which you may prefer.
- Code:
<span style="font:bla bla bla">bla bla text</span>
Last edited by LGforum on 3/5/2012, 4:39 pm; edited 1 time in total
- SeabodyMember
- Forum Posts : 9
Member Since : 2012-03-30
Yes, thank you LGForum!
@Vanilla, I was a bit unclear. I meant that, since HTML5 has deprecated the tag, what can I use to replace it? As in, instead of using this:
What could I use?
@Vanilla, I was a bit unclear. I meant that, since HTML5 has deprecated the tag, what can I use to replace it? As in, instead of using this:
- Code:
<font color="red">Hi</font>
What could I use?
- grimofdoomMember
- Forum Posts : 106
Member Since : 2012-03-06
you could use a couple of css text and font.A couple examples
- Code:
{font-size:24;text-decoration:none;color:red;text-align:center;}
- Sponsored content
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|