Coder Social home page Coder Social logo

bx_slider css about bxslider-3 HOT 2 CLOSED

stevenwanderski avatar stevenwanderski commented on August 20, 2024
bx_slider css

from bxslider-3.

Comments (2)

RyanBrackett avatar RyanBrackett commented on August 20, 2024

Hey man, I had the same issue. I was able to remedy the problem by going into jquery.bxSlider.js and adding a <span> around the pager number inside of the <a> tag. In my CSS document, I simply used {display: none;} on that <span> and it worked great. Basically, you're hiding the <span> while the <a> tag still shows. You can put a background color or an image behind the <a> tag. Here's how I did it:

Search in jquery.bxSlider.js for this
<a href="" class="pager-link pager-'+i+'">'+i+'</a>

Then, replace that with this
<a href="" class="pager-link pager-'+i+'"><span>'+i+'</span></a>

In your CSS, do this
.pager-link { padding: 0px 10px; background-color:#0066FF; } .pager-link span { display: none; } .pager-active { background-color: red;}

I hope this helps!

RB :-)

from bxslider-3.

NunoBentes avatar NunoBentes commented on August 20, 2024

Hello Ryan

Excelent!!! Thanks for your help!!! I had a problem similar of Josh Davies!!

Just a sugestion:

In your CSS, do this
.pager-link {} /* Delete paddings to avoid extra spaces
.pager-link span { display: none; }
.pager-active { background-color: red;}

In this part of the current CSS, do this (then all you need to do is setup width and height according your background image size!!! I think itΒ΄s easier!!! )
.bx-pager a {
margin-right: 5px;
color: #fff;
display:inline-block; /* Add this line /
width:20px; /
Add this line /
height:20px; /
Add this line _/
/_padding: 3px 8px 3px 6px; /* Remove this line /
font-size: 12px;
/ /* Remove this line */
zoom:1;
background: url(bx_styles/gray_pager.png) no-repeat 0 -20px;
text-decoration:none;
}

:)

I apreciate a lot your help finding that bit of code inside of jquery.bxSlider.js.

Regards
Nuno

from bxslider-3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.