1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

CSS question - external link

Discussion in 'General Internet' started by patrick013, 2010/05/05.

  1. 2010/05/05
    patrick013

    patrick013 Inactive Thread Starter

    Joined:
    2010/03/12
    Messages:
    40
    Likes Received:
    0
    Hello,

    I am using a CSS sheet and need an example of an external link.
    There are some kind of links usually between the story and the
    storyfooter and I haven't been able to properly put the command
    in.

    Any help ?

    THX

    Patrick
     
  2. 2010/05/05
    broni

    broni Moderator Malware Analyst

    Joined:
    2002/08/01
    Messages:
    21,701
    Likes Received:
    116
    You'd have to explain better, what you're doing.
    Normally, links are not entered through CSS, but through HTML.
     

  3. to hide this advert.

  4. 2010/05/06
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Links, or anchors, are made using the HTML anchor tag:
    Code:
    <a href= "path to resource ">Click here</a>
    CSS can only style the anchors:
    Code:
    /* goes in stylesheet */
    a:link {
    color:blue;
    text-decoration:none;}
    
    a:visited {
    color: blue;
    text-decoration:none;}
    
    a:hover {
    color: red;
    text-decoration:none;}
    
    a:active {
    color: blue;
    text-decoration:none;}
    
    <!-- goes in HTML -->
    <a href= "path to resource ">Click here</a>
     
  5. 2010/05/07
    patrick013

    patrick013 Inactive Thread Starter

    Joined:
    2010/03/12
    Messages:
    40
    Likes Received:
    0
    Hello,

    Thanks for the responses. The document I'm trying to CSS or HTML is a RSS feed.
    There are some pictures(photos) in these documents and those are OK and can
    be viewed offline. The other images are files from the source website and they
    cannot be viewed offline. They are basically ugly on the screen and I'm trying to
    just hide or get rid of them or whatever while leaving the other photo images alone.
    Some of these are links to Facebook, Twitter, Digg, etc. as well as to files on the
    source website so I thought I could hide them with the link or some external.link notation, if any.

    I read these offline and select a few for further reading while online later.

    Any ideas ?

    Thanks,

    Patrick
     
  6. 2010/05/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    RSS feeds are not coded in CSS or HTML, they are coded in XML.
    You could use CSS in an HTML file to hide ALL images:
    Code:
    <style type= "text/css ">
    img {
    display:none;}
    </style>
     
    Last edited: 2010/05/08
  7. 2010/05/08
    patrick013

    patrick013 Inactive Thread Starter

    Joined:
    2010/03/12
    Messages:
    40
    Likes Received:
    0
    I've done that to all images. Problem is that only some images
    should be removed.

    I guess it doesn't care which type of image it removes.


    THX.

    Patrick
     
  8. 2010/05/09
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    If you know which images you want removed you can use a class to hide just the images you want hidden.
    Code:
    <style type= "text/css ">
    .hide {
    display:none;}
    </style>Then in the HTML file add this to the images you want hidden:
    Code:
    <img [COLOR="Red"]class= "hide "[/COLOR] src= "foo" width=" " height=" " alt=" " />
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.