Link styles with CSS

I have a web page with 2 navigations - one horizontal under
the header and the other located vertically down the left of the
page.
The text colour styles of each are different.
So I wanted to allocate seperate a:link a:visit a:hover
a:active to both navigations, to do this I have used the following
css:
For the horizontal navigation:
.table2 a:link, a:visited {
text-decoration:none;
color:#FFFFFF;
.table2 a:hover, a:active {
color: #8da2c4;
For the second navigation:
.table3 a:link, a:visited {
text-decoration:none;
color: #717578;
.table3 a:hover{
color:#333333;
However when uploaded, instead of the horizontal navigation
returning to white once visited, it turns grey - the colour of the
second navigation. The browser (IE) obviously has trouble
seperating the assigned link styles even though I have tried
targeting more specifically.
Does anyone know of a way around this, if there is a way at
all??!
Much appreciated

Pseudo-classes and container styles are what you need - here
are some
tutorials.
http://www.mako4css.com
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"(_seb_)" <[email protected]> wrote in message
news:[email protected]...
> Lou28 wrote:
>> I have a web page with 2 navigations - one
horizontal under the header
>> and the other located vertically down the left of
the page.
>> The text colour styles of each are different.
>> So I wanted to allocate seperate a:link a:visit
a:hover a:active to both
>> navigations, to do this I have used the following
css:
>>
>> For the horizontal navigation:
>>
>> .table2 a:link, a:visited {
>> text-decoration:none;
>> color:#FFFFFF;
>> }
>> .table2 a:hover, a:active {
>> color: #8da2c4;
>> }
>>
>>
>> For the second navigation:
>>
>> .table3 a:link, a:visited {
>> text-decoration:none;
>> color: #717578;
>> }
>> .table3 a:hover{
>> color:#333333;
>>
>>
>> However when uploaded, instead of the horizontal
navigation returning to
>> white once visited, it turns grey - the colour of
the second navigation.
>> The browser (IE) obviously has trouble seperating
the assigned link
>> styles even though I have tried targeting more
specifically.
>>
>> Does anyone know of a way around this, if there is a
way at all??!
>>
>> Much appreciated
>>
>
> change:
> .table2 a:link, a:visited {
> to:
> .table2 a:visited, .table2 a:link {
>
> and do the same for .table3 links.
>
> --
> seb ( [email protected])
>
http://webtrans1.com | high-end web
design
> Downloads: Slide Show, Directory Browser, Mailing List

Similar Messages

  • How to overwrite styles with CSS?

    I have a large number of older html documents (I use Dreamweaver CS3 Premium) that were originally built using "regular" styles. I have tried to overwrite these old styles with CSS but this doesn't work. I first delete the old styles, attach the CSS and then apply the new CSS style, but artifacts of the old style remain, such as text colour, background colour, even font size. This has become a major time problem as I have to undo each element of a style to an item before I can successfully apply the new CSS. As I have over a hundred of these files to update, this process is costing me an enormous amount of time. Surely there must be a better way to apply new styles. Any help would be much appreciated.

    I’ll try to explain this problem again. The old HTML document has, for example:
    <style>
        .h1blue
        .h2blue
        .body
        .footer
    So .h1blue is “Arial, Helvetica etc,” size 16 pixels, font weight bold, color #000066.
    I first delete this set of styles and then attach a new CSS:
    ALPHA 210 new.css
        .body [Arial, Helvetica, etc.; size 12 points, line height 16 pts]
        .head1Brown [Times etc; size 18 points, font weight bold, color #663300]
    When I apply .head1Brown, for example, the result is Arial 18 points rather than Times, and color #000066 (blue) rather than #663300 (brown). This means that I have to undo the font info (back to default), undo the color (to black), then reapply the style. Sometimes I have to do this 2 times or more for it to take.

  • Link styles via CSS...

    Hi,
    I would like to control my link styles within my CSS panel,
    but if I set up one set (up, over, blah, blah)...how about if I
    want yet another style set for link text that's within a different
    color cell? Is it possible? How?
    Also, I have controlled background imagery and copy via CSS.
    But I would like to add ALT tags to portions of the background
    image. My properties inspector won't bring it up as an option due
    to the CSS. Do I just have to work with the HTML instead of the
    visuals?
    -- Same situation for the 'hot spot' tool, and I really need
    to use it but my bg image is unselectable due to it being inserted
    via CSS. The Properties doesn't "see it". How do I get around that?
    thank you!!
    thanks!

    Pseudo-classes and container styles are what you need - here
    are some
    tutorials.
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "r_tist" <[email protected]> wrote in
    message
    news:fafjlv$q28$[email protected]..
    > Hi,
    >
    > I would like to control my link styles within my CSS
    panel, but if I set
    > up
    > one set (up, over, blah, blah)...how about if I want yet
    another style set
    > for
    > link text that's within a different color cell? Is it
    possible? How?
    > Also, I have controlled background imagery and copy via
    CSS. But I would
    > like
    > to add ALT tags to portions of the background image. My
    properties
    > inspector
    > won't bring it up as an option due to the CSS. Do I just
    have to work with
    > the
    > HTML instead of the visuals?
    > -- Same situation for the 'hot spot' tool, and I really
    need to use it but
    > my
    > bg image is unselectable due to it being inserted via
    CSS. The Properties
    > doesn't "see it". How do I get around that?
    >
    > thank you!!
    >
    > thanks!
    >

  • How do I set a 2nd Links Style using CSS

    This might be a very simple question to everyone else, but I
    am a very simple novice!
    I have set up the link style for my webpage (see below), but
    I want to add some different links in a different style on the
    page.
    a:link {
    color: #3CCCFF;
    text-decoration: none;
    a:visited {
    color: #3CCCFF;
    text-decoration: none;
    a:hover {
    color: #FF339A;
    text-decoration: underline;
    a:active {
    color: #0099FF;
    text-decoration: none;
    I have set up a different text style (below) and would like
    to create link styles off of this (ie. same size and weight) but
    with different Link, Hover, Active, Visited styles.
    h3 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-weight: lighter;
    font-size: 9px;
    color: #ACACAC;
    line-height: 18px;
    margin: 0px 0px 0px 5px;
    Can this be done? If so, how do I add it to the CSS and the
    HTML document?
    Hope this makes sense and that someone can point me in the
    right direction,
    Thanks
    Webbo

    These should help:
    http://thepattysite.com/linkstyles1.cfm
    and
    http://mako4css.com/BasLink.htm
    Hope this helps
    Jo
    "Webbo agogo" <[email protected]> wrote in
    message
    news:e4eogg$d71$[email protected]..
    > This might be a very simple question to everyone else,
    but I am a very
    > simple
    > novice!
    >
    > I have set up the link style for my webpage (see below),
    but I want to add
    > some different links in a different style on the page.
    >
    > a:link {
    > color: #3CCCFF;
    > text-decoration: none;
    > }
    > a:visited {
    > color: #3CCCFF;
    > text-decoration: none;
    > }
    > a:hover {
    > color: #FF339A;
    > text-decoration: underline;
    > }
    > a:active {
    > color: #0099FF;
    > text-decoration: none;
    > }
    >
    > I have set up a different text style (below) and would
    like to create link
    > styles off of this (ie. same size and weight) but with
    different Link,
    > Hover,
    > Active, Visited styles.
    >
    > h3 {
    > font-family: Verdana, Arial, Helvetica, sans-serif;
    > font-weight: lighter;
    > font-size: 9px;
    > color: #ACACAC;
    > line-height: 18px;
    > margin: 0px 0px 0px 5px;
    > }
    >
    > Can this be done? If so, how do I add it to the CSS and
    the HTML document?
    >
    >
    > Hope this makes sense and that someone can point me in
    the right
    > direction,
    > Thanks
    >
    > Webbo
    >

  • Link Background with CSS

    If you look at
    this
    site and see how all the link boxes, when covered with the
    mouse the whole box changes colour, I wanted to know how to do that
    with CSS? Because at the moment all I can manage to do is only the
    text and not the entire box?

    On 24 Feb 2007 in macromedia.dreamweaver, pullher wrote:
    > If you look at
    >
    http://www.nufc.premiumtv.co.uk/page/Home/0,,10278,00.html
    and see
    > how all the link boxes, when covered with the mouse the
    whole box
    > changes colour, I wanted to know how to do that with
    CSS? Because at
    > the moment all I can manage to do is only the text and
    not the
    > entire box?
    Add display:block; to the CSS for the A element, as here:
    .menu A {
    color:white;
    display:block;
    background-color:#3E3E3E;
    padding:2px 3px 2px 10px;
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • How do you link styles with bullets and lists?

    It seems that amongst all the other hapless changes in Pages 5 there is no way to link bullets & lists to a style. I hope I'm missing something.
    If I create a style with a numbered list it, then click on the next paragraph I'd like to have that style, the style name changes along with font characteristics and alignment, but no bullets or numbers.  Moreover, pages crashes often when I try to update bullets and lists.
    I have a fantasy that somewhere in Pittsburgh where I beieve the Pages development team lives there's a building full of coders passionately fixing all these things. If just the people on this thread put in $20, the former cost of Pages, we could probably hire a team to do the work for them.

    1. Yes it is possible (and relatively easy)
    2. You should learn about applets, image handling, servlets and jdbc
    Good luck

  • Linked Image with CSS Hover background Color Jerks in IE8

    Please see http://www.rrmuseumpa.org/about/musviews/index.shtml and hover over any of the five slideshow images, using IE8. Note that the hover causes a jerk when the assigned background color for hover kicks in, apparently by adding some vertical margin at botton. It's fine in all other browsers.
    What I want is for any image that serves as a link to not have a border and to not pick up the default hover background color, and to not cause the "jerk" in IE8.
    CSS file is at http://www.rrmuseumpa.org/css/main.css . Specific css would be most appreciated.
    Thanks.
    Jim

    The very last style rule states
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarHorizontal li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;
    color: #FFF;
    This is a white backgorund and white text. Simply change the background colour to #2565B2
    Gramps

  • Customizing MenuBar style with CSS

    Has anyone been able to successfully apply a CSS attribute of
    background-color to the submenu items displayed in a MenuBar? I'm
    setting the styleName attribute of the MenuBar to an external style
    sheet defined as follows:
    .mainMenuBar {
    color: #E6EBEC;
    fill-alphas: 1.0, 1.0;
    fill-colors: #000000, #000000;
    background-color: #FFFFFF;
    The CSS is correctly applied to the top level MenuBar but the
    submenu items seem to ignore the CSS entirely. Is there a specific
    CSS subclass that I can define to override the default menu item
    style? I'm fairly frustrated at this point due to the lack of
    documentation / resources that I can find online regarding this and
    any help would be greatly appreciated.

    "burroinquieto" <[email protected]> wrote in
    message
    news:gd37mi$15i$[email protected]..
    > Has anyone been able to successfully apply a CSS
    attribute of
    > background-color
    > to the submenu items displayed in a MenuBar? I'm setting
    the styleName
    > attribute of the MenuBar to an external style sheet
    defined as follows:
    >
    > .mainMenuBar {
    > color: #E6EBEC;
    > fill-alphas: 1.0, 1.0;
    > fill-colors: #000000, #000000;
    > background-color: #FFFFFF;
    > }
    >
    > The CSS is correctly applied to the top level MenuBar
    but the submenu
    > items
    > seem to ignore the CSS entirely. Is there a specific CSS
    subclass that I
    > can
    > define to override the default menu item style? I'm
    fairly frustrated at
    > this
    > point due to the lack of documentation / resources that
    I can find online
    > regarding this and any help would be greatly
    appreciated.
    Try menuStyleName instead of styleName.
    HTH;
    Amy

  • Change portlet border with .css

    I want to change color and size of the portlet border with the help of .css.
    I have downloaded and use the dreamweaver Extension. .Css are link to portal site with UI template.
    I wondering which class that change the style for the border. So far have tried to use .PortletBodyColor and .PortletHeaderColor. Are there any one that have managed to change border style with .css?
    Regards,
    Jorunn

    I don't think you can just the outer border. If you look at the source code you see that the <td> tags also have the .portletbodycolor and header color classes, so while you technically can change the border, it will change the borders for all the cells and not just the outside of the table.

  • Problem with CSS styles and Previewing in Firefox

    Hello,
    I recently rebooted my Mac OS X system (leopard) and reinstalled Adobe CS3. Before this I had virtually no problems with Dreamweaver and everything was running smoothly. However, now whenever I preview my pages in Safari, the CSS code is completely mangled.
    Also, my site won't preview in Firefox unless I close any existing tabs and exit Firefox completely. I have no idea why these problems are occurring, but I have pasted the code below so any advice would be extemely helpful.
    ---------------------------------html----------------------------------------
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv= "Content-Type" content="text/html; charset= UTF-8" />
    <title>armed and harmless</title>
    <link href="untitled.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
        <div id="nav">
        </div>
    </div>
    </body>
    </html>
    -----------------------------------css-----------------------------------
    @charset "UTF-8";
        background-color: #000000;
        background-image: url(images/header.jpg);
        background-repeat: no-repeat;
        margin: 0px;
    #wrapper {
        height: 800px;
        width: 1000px;
        margin-top: 0px;
        margin-right: auto;
        margin-left: auto;
        background-color: transparent;
        background-image: none;
    #wrapper #nav {
        background-color: transparent;
        background-image: none;
        height: 30px;
        width: 1000px;
        margin-top: 260px;
        clear: both;
        border-top-width: 1px;
        border-bottom-width: 1px;
        border-top-style: solid;
        border-bottom-style: solid;
        border-top-color: #FFFFFF;
        border-bottom-color: #FFFFFF;

    hey there,
    thanks so much for the insight on the firefox issue. hopefully they fix that soon.
    as for the css, i do have a screenshot of what's happening. the background image seems to repeat after the navigation bar instead of keeping the transparent background. it's extremely odd and i've never seen it before. it can be seen in the attached photo.
    thanks again for your help,
    -e

  • Over riding an old CSS style with a new one

    Hi there,
    I'm still learning how to deal with CSS and I'm having this problem. I'm redesigning an existing site and trying to override the old styles with new ones. When I select the text I want to change, I try to apply a new style, and it doesn't work. It sometimes applies part of the style. I tried to change the order of the styles in the 'all rules' panel, but that didn't work. The old rule is #content a:hover, a:active and the new one (higher up the list) is #named anchor. The problem is that the old one looks like a link to nowhere (there's a background colour). I know there must be a simple solution here (besides cutting and pasting text that looks right into the different spot and rewriting the text like I've been doing-AHHHHH!). I don't want to change the properties of that rule because it works in other places thorughout the website. Can I somehow clear all the old style info off these headings and then reapply the new style? Help!

    CSS Pseudo-classes - Link States
    You need to define a set of link states (link, visited, hover, active) for each ID or class name required.  Let's say you want to have red links in your #header and white links in your #footer.
    CSS:
    #header a {text-decoration:none}
    #header a:link {color:red}     /**unvisited**/
    #header a:visited {color:gray} /**visited**/
    #header a:hover,               /**on mouse over**/
    #header a:active,              /**on click**/
    #header a:focus                /**on tab key**/
        {text-decoration:underline}
    #footer a {text-decoration:none}
    #footer a:link {color:white}
    #footer a:visited {color:yellow}
    #footer a:hover,
    #footer a:active,
    #footer a:focus 
        {text-decoration:underline}
    HTML:
    <div id="header">
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    </div>
    <div  id="footer">
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    </div>
    For more on CSS pseudo classes:
    http://www.w3schools.com/css/css_pseudo_classes.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Is it possible to style a tag button with CSS?

    hello,
    i'm currently using button images for Add to Cart etc. but would prefer to use CSS.
    any idea how the html should look to facilitate this?
    atm if i change it from an image to text, i.e. {tag_addtocart,Add to Cart}, the CSS formatting is ignored and i'm left with just a standard grey button.
    regards and thanks.
    Frank

    For those out there that could use more details on styling the buy button ...
    This works because this CSS overrides the existing Business Catalyst CSS. If you don't already have a separate CCS file, create one - for example "custom.css", and place the link to the CSS isle in you page header.
    Here is the CSS example. The button I've already created for the website is .my-red-btn and I have simply added .productSubmitInput after it so it calls the same style (remember to add the comma if you are applying this style to more than one class name, as I have in this example).
    .my-red-btn, .productSubmitInput {
              color: #ffffff;
            font-weight: 600;
              background-color: #FF0000;
              -webkit-border-radius: 4px;
              -moz-border-radius: 4px;
              border-radius: 4px;
            border-radius: 4px;
    Then add the tag to the module (Site Manager > Modules template > Online Shop Layouts > Individual Large Products) like this:
    {tag_addtocart,Buy me now}
    Good luck.

  • Dreamweaver very slow when linking to external CSS style sheets

    I'm working on a site on my PC using Dreamweaver CS6.  When I link to external style sheets, Dreamweaver virtually grinds to a halt.  Just clicking from one line to another can take up 10 seconds.  My PC is high spec, i3720, stripes set drives and 32gb ram.
    I have tried deleting the cache no change.  The external css files are part of the site and the site has been rebuilt .  Can somone help with this as it is seriously impacting my ability to use Dreamweaver.

    Hi Murray, the RAM comments were irrelevant, pointless. 32GB RAM vs 4GB RAM?  Sorry, I worked at Microsoft and as a systems integrataion consultant for a number of years.  32bit programmes don't access RAM the same as 64bit, but, having 32gb with a 64Bit OS means RAM usage for a 32bit programme is better managed. Programmes and data files are on seperate drives.  My data files kept are on 3 disk stripe sets.
    The CSS files and the HTML file are on the same drive.  AS an example of performance for data read/writes, I also use Photoshop CS6 to edit images in excess of 2gb in size containg multiple smart object, and I dont experience this type perormance lag.
    In this case, RAM is mainly irrlevent because the file are small, approx 200kb total combined size.  I mentioned RAM in my initial post because any time I've had problems with Adobe products before, I've always been asked how much RAM I have.
    So, can we please drop RAM, and perhaps focus on the problem....
         Dreamweaver, regardless of what background processes I have running, regardless of how much RAM I have, regardless of where the files are kept, has a significant performance hit when editing an HTML file with links to multiple CSS files.

  • How can you have multiple, different css link styles?

    Every time I want to create a different looking link just for some copy, it always reverts to the A:link style, even if I create a new style that looks just the way I want. How can I create multiple link styles and then be able to select the one I want at any time???
    I would greatly appreciate any help.
    Allan

    How are you applying the different styles to your links? In most cases, it's easiest to wrap the link(s) in an element, like a < div > that has a class or ID assigned, for instance class="altLinks". Then, set up the CSS style names like:
    .altLinks a:link
    ...and so on. Then, the styles would just apply to links within the element(s) with class "altLinks". Here's a tutorial that might also help:
    http://www.golivecentral.com/pages/tutorials.shtml#basicCSSlinks2
    Otherwise, if you're still having trouble, post back with a link to your page so we can see what's going on.

  • CSS Link Styles

    Having a problem displaying my links correctly using a linked
    style sheet. The links at the bottom of my pages behave properly,
    except for the fact that all of the links should be underlined, not
    just a select few. They all behave properly upon roll-over, but in
    a non-active state they all should be underlined. Everything
    appears to be fine in Dreamweaver, that is, all links are
    underlined.
    Page:
    http://relaxonmarco.com/
    CSS:
    http://relaxonmarco.com/ROMstyles.css
    Any help is greatly appreciated!

    You have the visited state of the link set to no underline...
    so once a link
    has been viewed, the underline disappears.
    a:visited {
    color: #FFFFFF;
    text-decoration: none;
    Change it to text-decoration: underline;
    if you want it to remain underlined.
    Nadia
    Adobe® Community Expert : Dreamweaver
    CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    ~ Customisation Service Available ~
    http://www.csstemplates.com.au
    "trevisc" <[email protected]> wrote in
    message
    news:fentp8$pee$[email protected]..
    > Having a problem displaying my links correctly using a
    linked style sheet.
    > The
    > links at the bottom of my pages behave properly, except
    for the fact that
    > all
    > of the links should be underlined, not just a select
    few. They all behave
    > properly upon roll-over, but in a non-active state they
    all should be
    > underlined. Everything appears to be fine in
    Dreamweaver, that is, all
    > links
    > are underlined.
    >
    > Page:
    http://relaxonmarco.com/
    > CSS:
    http://relaxonmarco.com/ROMstyles.css
    >
    > Any help is greatly appreciated!
    >

Maybe you are looking for

  • ITunes on multiple Macs, sharing same library via network

    I have 2 Minis, each in a different part of the house. All music is stored on one drive and the library is shared. Is there a way to start playing music from one Mac's iTunes (say downstairs) and have the other Mac's iTunes recognize that music is pl

  • Installing Java and Eclipse - its got to be easy, hasnt it?

    Hello all I dont know how ive got into this mess but all I know is it doesnt work I want to download Eclipse and have it run on my home XP computer - we use it at uni on linux machines. I went to the eclipse site and downloaded it - but the zip direc

  • Questions before purchase

    I'm considering the purchase of a M750 tablet laptop.  I have a couple of questions that I can't find in the on-line specifications: 1. What is the maximum resolution supported by the VGA port for an external monitor? 2. Is the pen pressure sensitive

  • Campus backpack recommendations

    I need a laptop backpack for college (incoming freshman). It needs to have a lot of organizational pockets for my cables, external drive, pens and pencils even, and my headphones. It also must fit and adequately protect my 15 inch mbp. The mbp has a

  • My backup cd failed me..How can I get my iTunes music back?

    I had to format my computer, and did a backup on my iTunes library, as recommended, on a dvd. Everything seemed fine, until I was about to copy my music back on to my ITunes after the formatting. iTunes says it can't read the CD/DVD properly after a