Go4Expert (http://www.go4expert.com/)
-   Web Design, HTML And CSS Forums (http://www.go4expert.com/forums/web-design-forum/)
-   -   I need CSS help - easy (http://www.go4expert.com/forums/i-css-help-easy-t15885/)

Horath 21Jan2009 05:30

I need CSS help - easy
I have a CSS document, and I want a thin colored bar on the side. This is my code:

div#trans1 { background:#080000;
width: 7px;
height: 100%;
position: relative;
top: 0px;
left: 0px;

The w3c CSS validator said it was good, and it works perfectly in Internet explorer.

But it doesn't work in Firefox, Netscape, or Opera. I see a bar w/ the correct width, and color, but it is not 100% the screen size.

ASAP help would be appreciated, so please reply soon if you have an answer for me!

Once again, many thanks!

shabbir 21Jan2009 09:04

Re: I need CSS help - easy
Moved to CSS forum for better response.

nInE-tAIls 21Jan2009 19:03

Re: I need CSS help - easy
can you give me a screen shot of your work? may be I can help you.

skp819 2Feb2009 11:22

Re: I need CSS help - easy
Hope your asking for that.

body {
    behavior: url(csshover.htc);
    font-family:Arial, Helvetica, sans-serif;
p a {
    color:    #000;

    color:    #000;
p a:hover{    text-decoration: none!important;

ul#nav {
    list-style: none;
    padding: 0;
    margin: 0;

ul#nav li a {
    display: block;
    font-weight: bold;
    padding: 2px 10px;
    background:    #A52A2A;

ul#nav li a:hover{
li {
    float: left;
    position: relative;
    width: 100px;
    text-align: center;
    border:1px solid #ccc;


ul#nav li.current a{
    background:    #A52A2A;

ul#nav li.current a:hover{
    background:    #A52A2A;

li ul {
    display: none;
    top: 18px;
    left: 0;
    font-weight: normal;
    padding: 1px 0 10px 0;

ul#nav li ul.sub li{
    border-width:0 1px 1px 1px!important;

ul#nav li ul.sub li a{
    font-weight: normal!important;   
li>ul {
    top: auto;
    left: auto;

li:hover ul, li.over ul {
    display: block;


All times are GMT +5.5. The time now is 00:36.