Basic Hyperlink Query

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KiwiBrian

    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


  • John Dunlop

    #2
    Re: |OT| Basic Hyperlink Query

    KiwiBrian:
    [color=blue]
    > Is it possible for anyone to help me to apply CSS styles to these links
    > without you being able see the PHP etc?[/color]

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

    --
    Jock

    Comment

    • KiwiBrian

      #3
      Re: |OT| Basic Hyperlink Query


      "John Dunlop" <usenet+2004@jo hn.dunlop.name> wrote in message
      news:1147160553 .731864.88940@i 40g2000cwc.goog legroups.com...[color=blue]
      > KiwiBrian:
      >[color=green]
      >> Is it possible for anyone to help me to apply CSS styles to these links
      >> without you being able see the PHP etc?[/color]
      >
      > All we would need is the HTML. CSS is separate from PHP, being
      > applied by the browser. URL?[/color]



      The hyperlinks are entered with client interaction with the PHP in entering
      entries into the calender.

      The two required access entries, name and password are both test

      Brian Tozer


      Comment

      • John Dunlop

        #4
        Re: |OT| Basic Hyperlink Query

        KiwiBrian:
        [color=blue][color=green][color=darkred]
        > >> Is it possible for anyone to help me to apply CSS styles to these links
        > >> without you being able see the PHP etc?[/color][/color]
        >
        > http://www.hibiscuslink.co.nz/FHF/events.php[/color]

        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;}



        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

        Comment

        • KiwiBrian

          #5
          Re: |OT| Basic Hyperlink Query

          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" <usenet+2004@jo hn.dunlop.name> wrote in message
          news:1147192347 .058916.321840@ j33g2000cwa.goo glegroups.com.. .[color=blue]
          > KiwiBrian:
          >[color=green][color=darkred]
          >> >> Is it possible for anyone to help me to apply CSS styles to these
          >> >> links
          >> >> without you being able see the PHP etc?[/color]
          >>
          >> http://www.hibiscuslink.co.nz/FHF/events.php[/color]
          >
          > 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
          >[/color]


          Comment

          • william.clarke@gmail.com

            #6
            Re: |OT| Basic Hyperlink Query

            KiwiBrian, you may want to check out this site:
            W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

            You'll find that it answers most of your HTML/CSS questions neatly and
            often with try-it-yourself examples.

            Comment

            Working...