I have a website that I have to re-design that's using a web-to-print ecommerce service. They give me access to most of the websites code so i can style the site myself. My issue is that for some reason the company that we use does not let us change the HTML of the top navigation bar, saying it would interfere with their back-end javascript that animates the navigation. Sadly their programmer decided to name their ID's with numbers at the start of them which makes it almost impossible to style it from a style sheet. (ID's can not have numbers at the start of them.) I'm going to post the code they gave me to work with, and then also post my code that I changed to create the desired affect. The issue is I can't use my current code because I had to change their ID's to make it work. Does anybody know a work-around that could get the desired affect i'm looking for in my second demo without changing the ID names? I tried inline styling, but I don't think it's possible to get a hover affect with inline.
Demo 1 - Using The HTML ID Tags i have to use.
Demo 2 - Using My HTML Changes to the ID's with Desired Affect.
<body class="desktop webkit webkit_525">
<div id="header">
<div class="content_width rel">
<a href="./Welcome to our site!_files/Welcome to our site!.html">
<div id="header_logo"></div>
</a>
<ul id="top_nav">
<li><a class="home_icon" href="./Welcome to our site!_files/Welcome to our site!.html">Home</a></li>
<li><a href="http://www.offsetprinting.com/account/contact">Contact</a></li>
<li><a href="https://secure.offsetprinting.com/account/estimate">Estimates</a></li>
<li><a href="http://www.offsetprinting.com/helpcenter">Help Center</a></li>
<li><a href="https://www.grifolsorderdesk.com/">Grifols</a></li>
<li><a href="http://www.salesaidtools.com/">Sales Aid Tools</a></li>
<li><a href="https://secure.offsetprinting.com/account/summary">Shopping Cart</a></li>
<li class="last-child"><a href="https://secure.offsetprinting.com/account/dashboard">My Account</a></li>
</ul>
<ul id="loginbar" class="rounded">
<li><a href="https://secure.offsetprinting.com/account/signup">New Account</a></li>
<li class="last-child"><a href="https://secure.offsetprinting.com/account/login">Login</a></li>
</ul>
<div id="header_products"></div>
<div id="product_search">
<input id="product_ti" class="default" type="text" value="Find A Product">
<input id="product_btn" type="button" value="Search">
<input id="product_default" type="hidden" value="Find A Product">
</div>
</div>
</div>
<!-- Navigation Bar //// Had to change ID's with numbers at the front to add hover affect with CSS -->
<div id="nav">
<ul id="nav_links" class="content_width_adjust">
<li id="color_offset_printing" style="width:183px;background-color:#343232;height:44px;border-top:4px solid #009ad6;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;" class="">
<a class="nav_parent narrow" href="">
<span>4-Color Offset Printing</span>
</a>
</li>
<li id="large_format" style="width: 139px; background-color:#343232;height:44px;border-top:4px solid #c60077;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;" class="">
<a class="nav_parent wide" href="">
<span>Large Format</span>
</a>
</li>
<li id="color_printing" style="width: 164px;background-color:#343232;height:44px;border-top:4px solid #cec41e;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;" class="">
<a class="nav_parent" href="">
<span>1&2 Color Printing</span>
</a>
</li>
<li id="color_digital_printing" style="width: 189px; background-color:#343232;height:44px;border-top:4px solid #000000;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;" class="">
<a class="nav_parent narrow" href="">
<span>4-Color Digital Printing</span>
</a>
</li>
<li id="roll_labels" style="width: 130px; background-color:#343232;height:44px;border-top:4px solid #565656;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;" class="">
<a class="nav_parent wide" href="">
<span>Roll Labels</span>
</a>
</li>
<li id="services" class="last" style="width: 133px;background-color:#343232;height:44px;border-top:4px solid #848484;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;
box-sizing: border-box;">
<a class="nav_parent services" href="">
<span>Services</span>
</a>
</li>
</ul>
</div>