PDA

View Full Version : strike through


FRANKTHETANK 2
02-14-2009, 06:54 AM
I'm looking to have my banned members look like this BANNED in the html markup. What would I have to do to get it to work.

Dismounted
02-14-2009, 10:02 AM
As in the User Title, or the Username itself?

FRANKTHETANK 2
02-14-2009, 03:18 PM
User title

Lynne
02-14-2009, 04:29 PM
I think you can put this in under User Title for the Banned usergroup:
<span style="text-decoration: line-through;">Banned</span>

Then I think you need to rebuild the user titles.

FRANKTHETANK 2
02-14-2009, 04:48 PM
Thank you lynn

Dingo14
02-15-2009, 01:00 AM
you can do it this way as well

<font color=#140910><strike>Banned Users</font>

Dismounted
02-15-2009, 03:19 AM
You can, but you should not. Both the <font> and <strike> tags are deprecated.

Lynne
02-15-2009, 03:25 AM
you can do it this way as well

<font color=#140910><strike>Banned Users</font>
You would need a </strike> in there before the </font>

But, as stated below, it is better to use css since the two tags you used are deprecated.

You can, but you should not. Both the <font> and <style> tags are deprecated.
I think you mean <font> and <strike>, not <style>. ;)

Dismounted
02-15-2009, 04:03 AM
I think you mean <font> and <strike>, not <style>. ;)
I don't type what I think. :cool:

badheeu
02-15-2009, 03:32 PM
I think you can put this in under User Title for the Banned usergroup:
<span style="text-decoration: line-through;">Banned</span>

Then I think you need to rebuild the user titles.

this way is better, without writing banned

<span style="text-decoration: line-through;"/span>

snakes1100
02-15-2009, 03:52 PM
this way is better, without writing banned

<span style="text-decoration: line-through;"/span>

Why is that?

1. It don't have a title in it ie. BANNED, without inputing the word BANNED, it will display nothing.

2. The tag is broken, ie. it invalidates the page markup, the page is no longer xhtml compliant as you didnt close the opening or closing span tag.

TigerC10
02-15-2009, 04:23 PM
this way is better, without writing banned

<span style="text-decoration: line-through;"/span>
Why is that?

1. It don't have a title in it ie. BANNED, without inputing the word BANNED, it will display nothing.

2. The tag is broken, ie. it invalidates the page markup, the page is no longer xhtml compliant as you didnt close the opening or closing span tag.


He was trying to write:
<span style="text-decoration: line-through;" />

Instead of wrapping the span tag around the word banned, you just end it with a "/" symbol to say "only apply it to the word that follows" - but you would still need the word "Banned" after the span tag.

I consider this bad programming practice, for something like a span, or a div - you should really have it wrapped around the text. There's some tags that are okay like that... singular tags like <br /> or <hr /> that don't have closing tags. Or if you have a cell in a table that has no data in it, <td /> is acceptable. But some older browsers don't know what to do with that syntax, so they just apply it to everything until they reach a closing tag. Rare as it may be to see someone using IE4, it happens from time to time.

snakes1100
02-15-2009, 04:26 PM
He was trying to write:
<span style="text-decoration: line-through;" />

Instead of wrapping the span tag around the word banned, you just end it with a "/" symbol to say "only apply it to the word that follows" - but you would still need the word "Banned" after the span tag.

I consider this bad programming practice, for something like a span, or a div - you should really have it wrapped around the text. There's some tags that are okay like that... singular tags like <br /> or <hr /> that don't have closing tags. Or if you have a cell in a table that has no data in it, <td /> is acceptable. But some older browsers don't know what to do with that syntax, so they just apply it to everything until they reach a closing tag. Rare as it may be to see someone using IE4, it happens from time to time.

That is why i posted what i did, its still bad coding, to be xhtml compliant it has to be closed to be valid.