Skip to main content
Known Participant
March 6, 2017
Question

Change only footer link colors

  • March 6, 2017
  • 2 replies
  • 2635 views

Okay so I don't know how to fix this...

No matter what I change, it changes all the links, or it doesn't change it at all.

See how the footer is all white because of the link? I need it to be black, while keeping the rest of my links white.

This topic has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
March 6, 2017

If you're using HTML5 tags,

footer a {

color: black;

}

If your tag selector is anything but <footer>, adjust CSS accordingly.  Also move the footer link style to the bottom of your stylesheet,  below all the other link styles.

Nancy

Nancy O'Shea— Product User & Community Expert
Known Participant
March 6, 2017

Nope... didn't work.

Jon Fritz
Community Expert
Community Expert
March 6, 2017

The info I posted above only works if you have used the <footer> element in a valid html document, and would go into the <style> tag in the <head> of the document, or into an external .css stylesheet.

It looks like you've pasted several complete documents together into one, that's probably going to cause issues in your viewer's browsers as well.

Take a moment to familiarize yourself with html and css, DW requires an understanding of those as well as some javascript to make the most of the program.

http://www.w3schools.com/html
http://www.w3schools.com/css

Jon Fritz
Community Expert
Community Expert
March 6, 2017

It's hard to say exactly what you should do without seeing your code, but you can target specific links on your page by creating a selector in your css that applies only to items within their parent element, something like...

#footer_id a {

     color:red;

}

(only affects <a> tags within an element with the id="footer_id")

Replace #footer_id with the id of the container holding those links and add in the color you want.

Known Participant
March 6, 2017

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">

<head>

<link rel="stylesheet" type="text/css" href="Untitled-1.css">

<title>../../files/9cf0c44f-4a85-4301-9ad8-0ae0972b754c/generated-html-html.html</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<style type="text/css">

a:link {

  color: #FFFFFF;

  text-decoration: none;

}

a:visited {

  text-decoration: none;

  color: #FFFFFF;

}

a:hover {

  text-decoration: none;

  color: #FFFFFF;

}

a:active {

  color: #FFFFFF;

}

</style>

<br/>

<style type="text/css">

<!--

  p {margin: 0; padding: 0;} .ft10{font-size:17px;font-family:Arimo;color:#000000;}

  .ft11{font-size:12px;font-family:Arimo;color:#52a1bd;}

  .ft12{font-size:37px;font-family:Arimo;color:#212121;}

  .ft13{font-size:21px;font-family:Arimo;color:#212121;}

  .ft14{font-size:21px;line-height:31px;font-family:Arimo;color:#212121;}

-->

</style>

</head>

<body bgcolor="#A0A0A0" link="blue" vlink="blue">

<div id="page1-div" style="position:relative;width:892px;height:1262px;">

<img width="892" height="1262" src="generated-html001.png" alt="background image"/>

<p style="position:absolute;top:199px;left:310px;white-space:nowrap" class="ft10">CHECK OUT OUR NEW ARRIVALS</p>

<p style="position:absolute;top:21px;left:42px;white-space:nowrap" class="ft11">M&#160;A&#160;R&#160;C&#160;H&#160;&#160;&#160;2&#160;0&#160;1&#160;7</p>

<p style="position:absolute;top:942px;left:300px;white-space:nowrap" class="ft12">SPRING&#160;IS&#160;HERE</p>

<p style="position:absolute;top:1040px;left:200px;white-space:nowrap" class="ft14">Read&#160;on&#160;to&#160;find&#160;more&#160;about&#160;our&#160;latest&#160;collection&#160;and&#160;<br/>GemGem&#160;news!&#160;Don't&#160;forget&#160;to&#160;connect&#160;with&#160;us&#160;on&#160;our&#160;<br/>social&#160;media&#160;platforms.</p>

</div>

</body>

</html>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">

<head>

<title>../../files/9cf0c44f-4a85-4301-9ad8-0ae0972b754c/generated-html-html.html</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<br/>

<style type="text/css">

<!--

  p {margin: 0; padding: 0;} .ft20{font-size:14px;font-family:Arimo;color:#ffffff;}

  .ft21{font-size:12px;font-family:Arimo;color:#faf9f6;}

  .ft22{font-size:24px;font-family:Arimo;color:#ffffff;}

  .ft23{font-size:24px;line-height:35px;font-family:Arimo;color:#ffffff;}

-->

</style>

</head>

<body bgcolor="#A0A0A0" vlink="blue" link="blue">

<div id="page2-div" style="position:relative;width:892px;height:1262px;">

<img width="892" height="1262" src="generated-html002.png" alt="background image"/>

<p style="position:absolute;top:24px;left:185px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/rylee-cru-circus-circus-tee-vanilla">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:411px;left:78px;white-space:nowrap" class="ft21">P&#160;.&#160;&#160;&#160;0&#160;2</p>

<p style="position:absolute;top:504px;left:34px;white-space:nowrap" class="ft23">Take&#160;a&#160;peek&#160;<br/>at&#160;the&#160;latest&#160;</p>

<p style="position:absolute;top:576px;left:29px;white-space:nowrap" class="ft22">arrivals&#160;from&#160;</p>

<p style="position:absolute;top:612px;left:43px;white-space:nowrap" class="ft22">our&#160;recent&#160;</p>

<p style="position:absolute;top:648px;left:45px;white-space:nowrap" class="ft22">collection!</p>

<p style="position:absolute;top:24px;left:481px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/joah-love-ash-black-neal-triangle-print-shorts">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:839px;left:175px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/rylee-cru-tents-kaftan-dress-rosewood">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:24px;left:763px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/rylee-cru-le-tigre-boxy-top-mustard-rylee-cru-le-tigre-boxy-top-mustard-rylee-cru-le-tigre-boxy-top-mustard-rylee-cru-le-tigre-boxy-top-mustard-rylee-cru-le-tigre-boxy-top-mustard">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:432px;left:326px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/rylee-cru-star-maxi-skirt-vanilla">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:432px;left:765px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/joah-love-boys-xavier-grid-shorts">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:844px;left:474px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/joah-love-boys-xavier-grid-shorts">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:844px;left:770px;white-space:nowrap" class="ft20"><a href="https://www.egemgem.com/products/joah-love-byron-tri-beldn-top-with-stripe-pocket">SHOP&#160;NOW</a></p>

</div>

</body>

</html>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">

<head>

<title>../../files/9cf0c44f-4a85-4301-9ad8-0ae0972b754c/generated-html-html.html</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<br/>

<style type="text/css">

<!--

  p {margin: 0; padding: 0;} .ft30{font-size:27px;font-family:Arimo;color:#faf9f6;}

  .ft31{font-size:17px;font-family:Arimo;color:#ffffff;}

  .ft32{font-size:27px;line-height:39px;font-family:Arimo;color:#faf9f6;}

-->

</style>

</head>

<body bgcolor="#A0A0A0" vlink="blue" link="blue">

<div id="page3-div" style="position:relative;width:892px;height:1262px;">

<img width="892" height="1262" src="generated-html003.png" alt="background image"/>

<p style="position:absolute;top:194px;left:62px;white-space:nowrap" class="ft32"><a href="https://www.egemgem.com/collections/apparel/products/chevron-intarsia-sweater">LULULALA&#160;<br/>SALE&#160;IS&#160;<br/>HAPPENING&#160;<br/>RIGHT&#160;NOW!&#160;<br/>DON'T&#160;MISS&#160;<br/>OUT&#160;ON&#160;<br/>THESE&#160;<br/>GREAT&#160;<br/>DEALS!&#160;</a></p>

<p style="position:absolute;top:932px;left:622px;white-space:nowrap" class="ft31"><a href="https://www.egemgem.com/collections/apparel/products/lovely-star-tutu">SALE&#160;$36.99</a></p>

<p style="position:absolute;top:932px;left:177px;white-space:nowrap" class="ft31"><a href="https://www.egemgem.com/collections/apparel/products/scon-stripe-pullover">SALE&#160;$33.99</a></p>

<p style="position:absolute;top:1193px;left:407px;white-space:nowrap" class="ft31"><a href="https://www.egemgem.com/collections/apparel/products/ribbed-legging">SALE&#160;$13.99</a></p>

</div>

</body>

</html>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">

<head>

<title>../../files/9cf0c44f-4a85-4301-9ad8-0ae0972b754c/generated-html-html.html</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<br/>

<style type="text/css">

<!--

  p {margin: 0; padding: 0;} .ft40{font-size:27px;font-family:Arimo;color:#faf9f6;}

  .ft41{font-size:21px;font-family:Arimo;color:#ffffff;}

  .ft42{font-size:17px;font-family:Arimo;color:#ffffff;}

  .ft43{font-size:27px;line-height:39px;font-family:Arimo;color:#faf9f6;}

-->

</style>

</head>

<body bgcolor="#A0A0A0" vlink="blue" link="blue">

<div id="page4-div" style="position:relative;width:892px;height:1262px;">

<img width="892" height="1262" src="generated-html004.png" alt="background image"/>

<p style="position:absolute;top:125px;left:586px;white-space:nowrap" class="ft43">READY&#160;FOR&#160;<br/>SPRING:&#160;<br/>GET&#160;YOUR<br/>LATEST&#160;<br/>SPRING&#160;<br/>ACCESSORIES&#160;<br/>NOW!</p>

<p style="position:absolute;top:532px;left:631px;white-space:nowrap" class="ft41"><a href="https://www.egemgem.com/collections/accessories/products/flower-headband-1">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:957px;left:209px;white-space:nowrap" class="ft42"><a href="https://www.egemgem.com/collections/accessories/products/handmade-big-bow-hair-clip">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:954px;left:608px;white-space:nowrap" class="ft42"><a href="https://www.egemgem.com/collections/accessories/products/spring-animal-crossbody-purse">SHOP&#160;NOW</a></p>

<p style="position:absolute;top:1179px;left:395px;white-space:nowrap" class="ft42"><a href="https://www.egemgem.com/collections/accessories/products/bow-glitter-knee-socks">SHOP&#160;NOW</a></p>

</div>

</body>

</html>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">

<head>

<title>../../files/9cf0c44f-4a85-4301-9ad8-0ae0972b754c/generated-html-html.html</title>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<br/>

<style type="text/css">

<!--

  p {margin: 0; padding: 0;} .ft50{font-size:32px;font-family:Arimo;color:#faf9f6;}

  .ft51{font-size:37px;font-family:Arimo;color:#212121;}

  .ft52{font-size:14px;font-family:Arimo;color:#212121;}

-->

</style>

</head>

<body bgcolor="#A0A0A0" vlink="blue" link="blue">

<div id="page5-div" style="position:relative;width:892px;height:1262px;">

<img width="892" height="1262" src="generated-html005.png" alt="background image"/>

<p style="position:absolute;top:72px;left:92px;white-space:nowrap" class="ft50">WE&#160;ARE&#160;NOW&#160;A&#160;MEMBER&#160;OF&#160;BABYCCINO&#160;</p>

<p style="position:absolute;top:120px;left:338px;white-space:nowrap" class="ft50">BOUTIQUES</p>

<p style="position:absolute;top:997px;left:251px;white-space:nowrap" class="ft51">CONNECT&#160;WITH&#160;US</p>

<div class="footer">

<p style="position:absolute;top:1138px;left:173px;white-space:nowrap" class="ft52">To&#160;ensure&#160;delivery,&#160;please&#160;add&#160;info@egemgem.com&#160;to&#160;your&#160;address&#160;book.</p>

<div class="footer">

<p style="position:absolute;top:1172px;left:227px;white-space:nowrap" class="ft52"><a href="http://www.egemgem.com/">Gemgem&#160;|&#160;17145&#160;Von&#160;Karman&#160;Ave&#160;#109,&#160;|&#160;Irvine,&#160;CA&#160;92614&#160;</a></p>

<p style="position:absolute;top:1195px;left:372px;white-space:nowrap" class="ft52"><a href="http://www.egemgem.com/">www.egemgem.com&#160;</a></p>

<p style="position:absolute;top:1217px;left:306px;white-space:nowrap" class="ft52"><a href="http://www.egemgem.com/">©&#160;2017&#160;Gemgem,&#160;All&#160;&#160;Rights&#160;Reserved</a></p>

</div></div></div>

</body>

</html>

CSS

footer {

a:link {color:black};

a:visited {color:black};

a:hover, #footer a:active, #footer a:focus

   {color:black};

}

The reason there is so little css is because this was a pdf I converted to html.

Nancy OShea
Community Expert
Community Expert
March 6, 2017

Have you defined a site in DW yet?

Define a site |

Without that first step, you're going to run into huge problems using DW, especially when you upload your site because the program is using the absolute path to your images/pages on your computer, rather than document relative links that it will need when the site goes live.

The CSS should be written as...

footer a:link {

     color:black;

}

footer a:visited {

     color:black;

}
footer a:hover, footer a:active, footer a:focus {

     color:black;

}


Well this HTML formatting is not helping matters any.  Get rid of it.

<body bgcolor="#A0A0A0" vlink="blue" link="blue">

Nancy O'Shea— Product User & Community Expert