Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7875003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:54:40+00:00 2026-06-03T02:54:40+00:00

I am very new to CSS, Bootstrap & LESS. I have checked out the

  • 0

I am very new to CSS, Bootstrap & LESS. I have checked out the Bootstrap website and saw that I should be able to create a vertical gradient using the LESS mixin:

#gradient > .vertical();

I want to do this in the footer {} section of my css.scss file. I have no idea how to code this. My guess is that I need to add the statement above with the start & end colors within the parentheses. The only examples I have seen were just the mixin. Does this need to be included with a background-image clause or something like that? I keep getting syntax errors.

I’m sure this is probably a simple question but my knowledge of CSS is lacking. However I am learning minute by minute by trial and error. Any help would be appreciated.

Updated 05/02/2012 7:15 am:

Here is my CSS code for the footer that I would like to add the vertical gradient to:

footer {
  margin-top: 45px;
  padding-top: 5px;
  border-top: 1px solid $grayMediumLight;
  color: #000000;
  font-size: 10px;
  font-family: Arial; 
  font-style: italic;
  #gradient > .vertical(@white, @grayDarker);
  }

I am using this in a Rails 3.2.3 application. The colors I want to use for the vertical gradient are start #ffffff stop #191919. I decided to try the predefined variables instead of the hex values. I also tried changing @ to $. I keep getting the following error.

Invalid CSS after "...ent > .vertical": expected "{", was "(@white, @grayD..."
  (in /Users/server1/Sites/iktusnetlive_RoR/app/assets/stylesheets/custom.css.scss).
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T02:54:40+00:00Added an answer on June 3, 2026 at 2:54 am

    Your problem is not with gradient mixin from Bootstrap. You’re writing LESS code in a .scss file which is a SASS file and Rails will try to compile it with SASS compiler.

    LESS and SASS are simillar but have some syntax and feature differences. If you want to use Bootstrap and LESS with rails 3.1 asset pipeline you need to create a new file with .less extension and configure your rails asset pipeline to compile less files with less compiler.

    It should be as easy as adding a couple of gems to you gem file and bundle install to get those gems, but I recommend watching “twitter-bootstrap-basics” episode of Railscasts to get all the details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very new to HTML/CSS. How should I go about making a navbar that is
I'm making a small website and I'm very new to CSS but whenever I
I'm very new to web design...okay, now that that's out of the way, where
Ok so I am very new to CSS and HTML. Basically I have the
I'm very new to WordPress and have no PHP or CSS experience... I'm want
I am very new to css so this maybe a simple answer. I have
I have a chrome extension that very simply injects CSS before a page loads.
I am very new to CSS. please go easy on me. I am interested
I'm very new at CSS and i want to put a header on to
I'm very new to YUI. And I used this tool to generate some css

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.