header nav {width:auto; margin:0 10px; float:left; overflow:hidden;}
header nav ul li {float:left; width:46px; height:83px;}
header nav ul li a {width:46px; height:83px; float:left;}
header nav ul li .icon1
{background:url(’…/images/nav-menu/menu_items.png’) no-repeat;
width:22px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon2
{background:url(’…/images/nav-menu/menu_items.png’) -23px -0px
no-repeat; width:23px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon3
{background:url(…/images/nav-menu/menu_items.png) -47px -0px no-repeat;
width:19px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon4
{background:url(…/images/nav-menu/menu_items.png) -67px -0px no-repeat;
width:20px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon5
{background:url(…/images/nav-menu/menu_items.png) -0px -24px no-repeat;
width:25px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon6
{background:url(…/images/nav-menu/menu_items.png) -26px -24px
no-repeat; width:16px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon7
{background:url(…/images/nav-menu/menu_items.png) -43px -24px
no-repeat; width:18px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon8
{background:url(…/images/nav-menu/menu_items.png) -62px -24px
no-repeat; width:22px; height:22px; margin:29px auto 0 auto;}
header nav ul li:hover {background:url(../images/bgNav.png)
no-repeat; width:46px; height:83px;}
none of thoses background’s works, the called is correct, but the image
is not called.
header nav {width:auto; margin:0 10px; float:left; overflow:hidden;}
header nav ul li {float:left; width:46px; height:83px;}
header nav ul li a {width:46px; height:83px; float:left;}
header nav ul li .icon1
{background:url(‘…/images/nav-menu/menu_items.png’) no-repeat;
width:22px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon2
{background:url(‘…/images/nav-menu/menu_items.png’) -23px -0px
no-repeat; width:23px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon3
{background:url(…/images/nav-menu/menu_items.png) -47px -0px no-repeat;
width:19px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon4
{background:url(…/images/nav-menu/menu_items.png) -67px -0px no-repeat;
width:20px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon5
{background:url(…/images/nav-menu/menu_items.png) -0px -24px no-repeat;
width:25px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon6
{background:url(…/images/nav-menu/menu_items.png) -26px -24px
no-repeat; width:16px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon7
{background:url(…/images/nav-menu/menu_items.png) -43px -24px
no-repeat; width:18px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon8
{background:url(…/images/nav-menu/menu_items.png) -62px -24px
no-repeat; width:22px; height:22px; margin:29px auto 0 auto;}
header nav ul li:hover {background:url(../images/bgNav.png)
no-repeat; width:46px; height:83px;}
none of thoses background’s works, the called is correct, but the image
is not called.
On Wed, Feb 22, 2012 at 4:42 PM, Felipe Pieretti U. < [email protected]> wrote:
I change now to main.css.scss, and I reload my page and this errors
show:
Alpha channel 70 must be between 0 and 1 inclusive for `rgba’
(in /home/felipe/rails/Younner/app/assets/stylesheets/main.css.scss)
Thanks
As I said … it is not necessary … if you know how to work with SCSS
then it will help you, if not you just only have to work with .css
extension as usual, but … lets say you have a Product view then you
need
product.css
and inside this you have to write the css for that view.
You may have notice that there’s an application.css, you can put your
styles in there. At least you should try your style in a static html
file
and see if it’s working
Hi, sorry I should have read your post properly. I’ve had similar
problems, the path to the images is not what you think it should be! The
point about adding .erb or .css is that you can use embedded Ruby, and
call Rails helpers such as imagetag(). Or you could experiment with the
path to find out what it should be or alternatively use fully qualified
URIs.
header nav {width:auto; margin:0 10px; float:left; overflow:hidden;}
header nav ul li {float:left; width:46px; height:83px;}
header nav ul li a {width:46px; height:83px; float:left;}
header nav ul li .icon1
{background:url(‘…/images/nav-menu/menu_items.png’) no-repeat;
width:22px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon2
{background:url(‘…/images/nav-menu/menu_items.png’) -23px -0px
no-repeat; width:23px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon3
{background:url(…/images/nav-menu/menu_items.png) -47px -0px no-repeat;
width:19px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon4
{background:url(…/images/nav-menu/menu_items.png) -67px -0px no-repeat;
width:20px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon5
{background:url(…/images/nav-menu/menu_items.png) -0px -24px no-repeat;
width:25px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon6
{background:url(…/images/nav-menu/menu_items.png) -26px -24px
no-repeat; width:16px; height:22px; margin:29px auto 0 auto;}
header nav ul li .icon7
{background:url(…/images/nav-menu/menu_items.png) -43px -24px
no-repeat; width:18px; height:23px; margin:29px auto 0 auto;}
header nav ul li .icon8
{background:url(…/images/nav-menu/menu_items.png) -62px -24px
no-repeat; width:22px; height:22px; margin:29px auto 0 auto;}
header nav ul li:hover {background:url(../images/bgNav.png)
no-repeat; width:46px; height:83px;}
none of thoses background’s works, the called is correct, but the image
is not called.