Jump to content

Recommended Posts

Hi everyone. We're trying to do a little CSS work on our website:

 

We have this code:

<p align="justify"><font color="#33ccff"><u><font size="3"><font color="#ff6600"><font size="4"><strong>How to sign up</strong></font></font></font></u></font></p>

 

The effect of it can be seen here: http://www.roshni.org.uk/Get%20Involved/Raise%20money

it gives us orange text, with a very thin blue underline.

 

We'd like to simplify this a bit by moving the code to CSS so there's less to remember when reusing this style. But how would we remake this effect in CSS ?

Link to comment
https://forums.phpfreaks.com/topic/217453-converting-an-html-trick-to-css/
Share on other sites

  • 2 weeks later...

Hello again folks. Sadly marking unsolved :(

 

We're having a problem with the provided solution, using text in tables. The blue underline continues all the way along the width of the element, even after the text ends. See the attached image for an example.

 

Any idea how to restrict the underline to the text only ?

 

[attachment deleted by admin]

Thank you Haku, this does indeed work. Looks like it's the solution we'll have to go for.

 

Unfortunately, doing so has created another problem for us. For acessibility reasons, we currently have a script on the site which allows users to change the text size on the page. Unfortunately, this works based on the <p> tag used to identify expandeable text.

 

We can modify the script to accomodate <span> too, although this is a little beyond my knowledge. If anyone knows a bit of vbscript and would like to help, please do have a look here:http://www.visualbasicscript.com/tm.aspx?high=&m=87224&mpage=1#87224

(even post a reply in this thread, I will still check it)

 

In any case, This problem is solved now, thank you for your assistance.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.