Chatbox

You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Font Tag? on 2/5/2012, 2:47 am

Seabody

avatar

Member
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?

View user profile

2 Re: Font Tag? on 2/5/2012, 3:01 am

Vanilla990

avatar

Administrator
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?

View user profile

3 Re: Font Tag? on 2/5/2012, 7:38 am

Drogba921

avatar

Administrator
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.

Code:
<div class="font">random</div>

Code:
.font {
font-size: --px;
font-family: 'Georgia', Arial, Serif;
line-height: 125%;
color: #000;

View user profile http://www.codinghelp.org

4 Re: Font Tag? on 2/5/2012, 2:51 pm

LGforum

avatar

Moderator
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.

Code:
<span style="font:bla bla bla">bla bla text</span>



Last edited by LGforum on 3/5/2012, 6:39 pm; edited 1 time in total

View user profile

5 Re: Font Tag? on 3/5/2012, 6:36 pm

Rideem3

avatar

Premium Member
You don't even need to use a class (you could, but you houldnt unless it's for multiple elements).

Simply use the SPAN tag like LG said Wink :
Code:
<span style="font-color: #FFFFFF;">Text</span>

View user profile http://malware-site.www/

6 Re: Font Tag? on 6/5/2012, 12:00 am

Seabody

avatar

Member
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:

Code:

<font color="red">Hi</font>

What could I use?

View user profile

7 Re: Font Tag? on 6/5/2012, 7:16 am

grimofdoom

avatar

Member
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;}
you can check out more at w3school

View user profile

8 Re: Font Tag? on 6/5/2012, 7:23 am

Drogba921

avatar

Administrator
you can use this Seabody -


Code:
<span style="color: #ff0000;">Hi</span>

View user profile http://www.codinghelp.org

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum