html - Using CSS for a link output by PHP? -


OK, so I have an HTML form and I use that form to upload the link to my database and then I want to do the link displayed on an updated page, all is well, but my problem is that whenever the link is retrieved and displayed from the database, I am unable to make changes to the CSS. For example:

  & lt; A href = "www.stackoverflow.com" & gt; This is a great site & lt; / A & gt;   

I will enter the form, this database will be saved, and the output will be:

My problem is, I have color and other inline I am unable to change any link style beyond CSS options.

What would be the easiest way to go about this? I am unable to change the thing on which the link has been clicked or how the action has been taken. Is there a simple CSS solution that I am missing, or is I working a bit more complex?

Thanks in advance.

I do not get your question.

Your link is 'www.stackoverflow.com'.

You can get your link as output

  & lt; A href = "www.stackoverflow.com" & gt; This is a great site & lt; / A & gt;   

Do you prevent class or style attributes from being output?

  & lt; A href = "www.stackoverflow.com" class = "mylinkclass" & gt; This is a great site & lt; / A & gt; & Lt; A href = "www.stackoverflow.com" style = "color: red;" & Gt; This is a great site & lt; / A & gt;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -