470,815 Members | 1,343 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Basic Hyperlink Query

I have a php series of scripts/programs/files which provide a simple
calendar/scheduler program.
When either an email or web address/hyperlink are displayed within the
output, they seem to have the browser default link colours and underline.
Altho the output table/content is within a div in the web page, I seem to be
unable to apply CSS styles to the div contents in this case.
I have even tried !important to no avail.
There does not seem to be any HTML tags in the PHP controlling them.
Is it possible for anyone to help me to apply CSS styles to these links
without you being able see the PHP etc?
Ignore this if I am asking for the impossible/impractical.
TIA
Brian Tozer
May 9 '06 #1
5 1331
KiwiBrian:
Is it possible for anyone to help me to apply CSS styles to these links
without you being able see the PHP etc?


All we would need is the HTML. CSS is separate from PHP, being
applied by the browser. URL?

--
Jock

May 10 '06 #2

"John Dunlop" <us*********@john.dunlop.name> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
KiwiBrian:
Is it possible for anyone to help me to apply CSS styles to these links
without you being able see the PHP etc?


All we would need is the HTML. CSS is separate from PHP, being
applied by the browser. URL?


http://www.hibiscuslink.co.nz/FHF/events.php

The hyperlinks are entered with client interaction with the PHP in entering
entries into the calender.
http://www.hibiscuslink.co.nz/FHF/CAL/admin.php
The two required access entries, name and password are both test

Brian Tozer
May 10 '06 #3
KiwiBrian:
Is it possible for anyone to help me to apply CSS styles to these links
without you being able see the PHP etc?


http://www.hibiscuslink.co.nz/FHF/events.php


I see your 'text-decoration: none !important' in an inline style, so
I'm supposing that that's what you've tried.

You have to apply the styles to the As rather than the DIVs. There
are various ways. For example, assign a class to every link (e.g., <a
class="..." href="...">), or use some contextual selector, or just the
type selector A,

A:hover {text-decoration: none;}

http://www.w3.org/TR/CSS21/selector.html

If you're still having no luck, I suggest looking at the browser to
see if it's overriding author stylesheets with !important user
stylesheets.

--
Jock

May 10 '06 #4
Thankyou John/Jock. You have taught me a very useful lesson.
I have achieved total success thanks to your help.
Kind regards
Brian

"John Dunlop" <us*********@john.dunlop.name> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
KiwiBrian:
>> Is it possible for anyone to help me to apply CSS styles to these
>> links
>> without you being able see the PHP etc?


http://www.hibiscuslink.co.nz/FHF/events.php


I see your 'text-decoration: none !important' in an inline style, so
I'm supposing that that's what you've tried.

You have to apply the styles to the As rather than the DIVs. There
are various ways. For example, assign a class to every link (e.g., <a
class="..." href="...">), or use some contextual selector, or just the
type selector A,

A:hover {text-decoration: none;}

http://www.w3.org/TR/CSS21/selector.html

If you're still having no luck, I suggest looking at the browser to
see if it's overriding author stylesheets with !important user
stylesheets.

--
Jock

May 10 '06 #5
KiwiBrian, you may want to check out this site:
http://www.w3schools.com/
You'll find that it answers most of your HTML/CSS questions neatly and
often with try-it-yourself examples.

May 10 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Andreas Meffert | last post: by
5 posts views Thread by Gamesetal | last post: by
10 posts views Thread by hecsan07 | last post: by
6 posts views Thread by epigram | last post: by
4 posts views Thread by wrytat | last post: by
7 posts views Thread by Bob Sanderson | last post: by
reply views Thread by shaqattack1992-newsgroups | last post: by
1 post views Thread by TheRock | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.