Welcome to TalkGraphics.com
Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: 15 mins in xara

  1. #1
    Join Date
    Apr 2001
    Location
    Australia
    Posts
    995

    Default 15 mins in xara

    a friend wanted a web page for a holiday letting site, link below. This took about 15 mins in xara pro. I just can't figure out how to get rid of the underline in the links, I had it unticked any suggestions...ta tao

    http://lavistabyronbay.com/lavista/index.htm

  2. #2
    Join Date
    Jan 2004
    Location
    Holland Patent, NY, USA
    Posts
    605

    Default Re: 15 mins in xara

    Quote Originally Posted by Tao jones View Post
    I just can't figure out how to get rid of the underline in the links, I had it unticked any suggestions...
    Not sure about in XX, but you can just edit the default.css file in a text editor like notepad and change the following line from:

    a[href] * {text-decoration:underline;}

    to:

    a[href] * {text-decoration:none;}

  3. #3
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,509

    Default Re: 15 mins in xara

    Nice page Roger.

    This is the kind of project that is perfect for Xtreme.

    Good tip Steven for getting rid of the underline.

    Gary

  4. #4
    Join Date
    Apr 2001
    Location
    Australia
    Posts
    995

    Default Re: 15 mins in xara

    thanks steve..but it didn't seem to work the underlines are still there...t

    /* Document settings */
    body {background-color:#ffffff; font-family:sans-serif;}
    a[href] {color:#0000ff;}
    a[href]:hover {color:#ff0000; cursorer;}
    a[href]:visited {color:#800080;}
    a[href] * {text-decoration:none;}
    div {unicode-bidi:bidi-override;}
    span {unicode-bidi:bidi-override;}
    sup {font-size:0.5em;}
    sub {font-size:0.5em;}

  5. #5
    Join Date
    Apr 2001
    Location
    Australia
    Posts
    995

    Default Re: 15 mins in xara

    not sure where the 'stick out tongue' came from..just appeared when I copied the text in from notepad..

  6. #6
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: 15 mins in xara

    Roger the browser settings of any person viewing the page will determine if links are underlined or not, over riding the CSS settings.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	links.png 
Views:	425 
Size:	17.3 KB 
ID:	51003  
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  7. #7
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: 15 mins in xara

    Hi Tao,
    try this one:
    Code:
    /* Document settings */
    body {background-color:#ffffff; font-family:sans-serif;}
    a[href] {color:#0000ff;text-decoration:none;}
    a[href]:hover {color:#ff0000; cursor:pointer;}
    a[href]:visited {color:#800080;}
    a[href] * {text-decoration:none;}
    div {unicode-bidi:bidi-override;}
    span {unicode-bidi:bidi-override;}
    sup {font-size:0.5em;}
    sub {font-size:0.5em;}
    Quote Originally Posted by Tao jones View Post
    not sure where the 'stick out tongue' came from..just appeared when I copied the text in from notepad..
    The combination of ":" and "p" characters is treated as . So it ppears in the:
    Code:
    cursor:pointer
    John.

  8. #8
    Join Date
    Jan 2004
    Location
    Holland Patent, NY, USA
    Posts
    605

    Default Re: 15 mins in xara

    Quote Originally Posted by Tao jones View Post
    thanks steve..but it didn't seem to work the underlines are still there...t
    You're right. I should have tested.

    Adding this line will work. Not sure why the other doesn't, just now.

    a {text-decoration:none;}

  9. #9
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: 15 mins in xara

    a[href] * refers to the elements located within the <a>.
    a[href] refers to the sole <a> elements.
    John.

  10. #10
    Join Date
    Jan 2004
    Location
    Holland Patent, NY, USA
    Posts
    605

    Default Re: 15 mins in xara

    Quote Originally Posted by covoxer View Post
    a[href] * refers to the elements located within the <a>.
    a[href] refers to the sole <a> elements.
    Makes sense, John.

    Why does XX generate this code though:

    a[href] * {text-decoration:underline;}

    as underline is the default property for an anchor tag and why are you specifying the contents of <a>, rather than the <a> element in your CSS code?

    Also, I'm not familiar with the [href] portion. What is that doing? I'm somewhat familiar with CSS but there are some holes in my understanding...

    Thanks...

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •