473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1533
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andreas Meffert | last post by:
Hello, How can I change the Type of a field in a table from Memo to hyperlink? I import a table from Oracle to Access 2003. After that, the field type of some hyperlink-fields is "Memo". How...
5
by: Gamesetal | last post by:
Have '97 and am trying to create a query on the underlying Hyperlink field - ie if xxx then else ... Can't find a way to do this and would very much appreciate some kind help - thanks - John
10
by: hecsan07 | last post by:
I am a novice programmer. I want to have a hyperlink that looks like so: www.mycoolsite.com?a=21132. On click I want to extract the query string and use it to query a table within a DB (SQL...
6
by: epigram | last post by:
I'm using the DataGrid with AutoGenerateColumns set to false and choosing which columns I want in the grid by using the <Columns> attribute. What I want to do is to create a hyperlink out of one...
4
by: wrytat | last post by:
I have a form with a textbox for the user to enter a quantity and another textbox for the delivery date. I disabled this delivery date textbox such that the user has to press a calendar link next...
7
by: Bob Sanderson | last post by:
I have a php page which contains the code: echo "<tr>"; echo "<th>$JobNumber</th>"; echo "<td>$Description</td>"; echo "<td>$NSN</td>"; echo "<td>$Manufacturer</td>"; echo...
0
by: shaqattack1992-newsgroups | last post by:
I have a table with a hyperlink field pointing to an Excel file that I would like to automatically print out on a report form. For example, I have a table: Part--------Drawing(hyperlink field)...
1
by: TheRock | last post by:
I hope I can make this clear. I have a combo box that allows the user to query an IP address. They type in an IP address and the results are returned via a form that allows them to click on the IP...
1
by: mramsay | last post by:
Hi there, I have a dynamic hyperlink Baseball. When the user select the hyperlink they are redirected to another page. After that I want to display information on the page from my linkstbl. ...
5
LAD
by: LAD | last post by:
Using Access 2003 on Windows 2000. My Skill Level: Med Low (Some VBA, okay with Access) Form: Single View - based on Query of single Table to sort by field. Application: Dealers email 'contract...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.