robenolt
10-31-2010, 06:19 AM
The problem is the links on the sidebar are centered when they should be aligned to the left. The links are aligned properly when viewed in internet explorer but in other browsers it looks centered. Can someone help me resolve this issue? How do I fix it so that it is aligned to the left in all browsers.
oh almost forgot! how can I shorten the link parts in the stylesheet. I mean since the active, visited, hover, and link parts all have the exact same coding. Would this work?
a.inocente:link,hover, active,visited
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
HTML Page: http://smelllybean.webs.com/testing2.htm
My Stylesheet:
body
{
bgcolor: #000000;
font-family: Arial, Helvetica, sans-serif;
font-color: black;
font-size: 12pt;
background-image:url("http://img829.imageshack.us/img829/914/66100548.png");
background-color:#000000;
background-repeat:repeat-y;
font-size: 12px;
text-align: center;
}
/* Navigation Links*/
a.inocente:link
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:visited
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:hover
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:active
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
ul
{
list-style-type: none;
padding: 0px;
margin: 0px;
width:108px;
}
li
{
background-image: url(http://img255.imageshack.us/img255/5898/orderedlink.png);
background-repeat: no-repeat;
background-position: 4px 5px;
padding-left: 18px;
}
#banner
{
background-image: url(http://img440.imageshack.us/img440/7643/30277505.png);
background-repeat: no-repeat;
position: absolute; left: 175px;top: 0px;
width: 644px;
height: 150px;
}
html
{
scrollbar-face-color: #B6342E;
scrollbar-arrow-color: #CABB86;
scrollbar-highlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-3dlight-color: #D2BE82;
scrollbar-track-color: #000000;
}
/* 2 divs Position Sidebar Links*/
div.smellly
{
position: absolute;
left: 0px;
top: 0px;
width: 143px;
overflow: hidden;
}
div.bean
{
position: absolute;
left: 844px;
top: 0px;
width: 143px;
overflow: hidden;
}
table.anseris
{
width: 140px;
margin-left: 0px;
margin-top: 0px;
border: none;
}
/* Red Links on Navigation Bar*/
a.Errai:link
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:visited
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:hover
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:active
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
div.lovespoo
{
position: absolute;
left: 177px;
top: 151px;
width:640px;
overflow:auto;
border-color: 00000;
border-style: none;
border-width: 3px;
}
/* Red Links that are not on the nav. bar*/
a.Neshmet:link
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:visited
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:hover
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:active
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
oh almost forgot! how can I shorten the link parts in the stylesheet. I mean since the active, visited, hover, and link parts all have the exact same coding. Would this work?
a.inocente:link,hover, active,visited
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
HTML Page: http://smelllybean.webs.com/testing2.htm
My Stylesheet:
body
{
bgcolor: #000000;
font-family: Arial, Helvetica, sans-serif;
font-color: black;
font-size: 12pt;
background-image:url("http://img829.imageshack.us/img829/914/66100548.png");
background-color:#000000;
background-repeat:repeat-y;
font-size: 12px;
text-align: center;
}
/* Navigation Links*/
a.inocente:link
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:visited
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:hover
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.inocente:active
{
width: 130px;
font-size: 12px;
color: black;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
ul
{
list-style-type: none;
padding: 0px;
margin: 0px;
width:108px;
}
li
{
background-image: url(http://img255.imageshack.us/img255/5898/orderedlink.png);
background-repeat: no-repeat;
background-position: 4px 5px;
padding-left: 18px;
}
#banner
{
background-image: url(http://img440.imageshack.us/img440/7643/30277505.png);
background-repeat: no-repeat;
position: absolute; left: 175px;top: 0px;
width: 644px;
height: 150px;
}
html
{
scrollbar-face-color: #B6342E;
scrollbar-arrow-color: #CABB86;
scrollbar-highlight-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-3dlight-color: #D2BE82;
scrollbar-track-color: #000000;
}
/* 2 divs Position Sidebar Links*/
div.smellly
{
position: absolute;
left: 0px;
top: 0px;
width: 143px;
overflow: hidden;
}
div.bean
{
position: absolute;
left: 844px;
top: 0px;
width: 143px;
overflow: hidden;
}
table.anseris
{
width: 140px;
margin-left: 0px;
margin-top: 0px;
border: none;
}
/* Red Links on Navigation Bar*/
a.Errai:link
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:visited
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:hover
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
a.Errai:active
{
width: 130px;
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
text-align: left;
}
div.lovespoo
{
position: absolute;
left: 177px;
top: 151px;
width:640px;
overflow:auto;
border-color: 00000;
border-style: none;
border-width: 3px;
}
/* Red Links that are not on the nav. bar*/
a.Neshmet:link
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:visited
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:hover
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}
a.Neshmet:active
{
font-size: 12px;
color: #B6342E;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
text-decoration: none;
}