0

This is driving me crazy. Im just trying to print my name at the bottom of a webpage, Ryan Doe. If i put

<div><p>&#169; Ryan Doe 2014</p></div>

It will only print "Doe 2014"

If i put some random text in front, like:

<div><p>WHAYSJAFHSKJh&#169; Ryan Doe 2014</p></div>

It will print the entire string, like "WHAYSJAFHSKJh© Ryan Doe 2014". Whats going on?

The only style rules i am applying to this particular div are:

font-family: Arial, sans-serif;
color: white;
Thamilhan
  • 13,040
  • 5
  • 37
  • 59
ryan
  • 1,451
  • 11
  • 27
  • 2
    Works completely fine for me: http://jsfiddle.net/DQH9g/ – Albert Xing Jul 18 '14 at 22:39
  • 2
    What happens if you just use `©`? What font(s) are you using in your print style? – Tieson T. Jul 18 '14 at 22:39
  • Same thing happens with using &copy. Applying a max-width in the stylesheet causes all the text to appear, I have no idea whats going on... – ryan Jul 18 '14 at 22:49
  • 2
    Create a fiddle which reproduces the problem. There are to many variables which could cause this for us to be able to guess given the little HTML code you have provided. – HaukurHaf Jul 18 '14 at 23:06

2 Answers2

0

Few ways may fix your problem:

  1. try to use tag <pre> instead of <p>. <pre> is tag to display preformatted text.
  2. try to add &nbsp; before &#169;
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Andriy Ivaneyko
  • 20,639
  • 6
  • 60
  • 82
0

HTML entities are discouraged. Use the actual symbol ©.

   <div><p>© Ryan Doe 2014</p></div>  
Community
  • 1
  • 1
Miguel Mota
  • 20,135
  • 5
  • 45
  • 64