Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
Like Tree4Likes
  • 1 Post By AlphaMare
  • 3 Post By TheGAME1264

Thread: JQuery slider issue

  1. #1
    Member celticshinobi's Avatar
    Join Date
    Nov 2012
    Location
    TN, USA
    Posts
    36
    Member #
    33858
    Liked
    1 times

    Angry JQuery slider issue

    Would any of you fine experts mind peeking at something I'm tinkering with? I've been up a LONG time this week, so it may be due to lack of sleep...but...I can't seem to change the size of my image slider.

    It's a pretty simple slider that I've plugged into my code..and it works fine, but the size won't change no matter what I do..I'd like to have the slider width at 950px or so...but it keeps arguing with me. Heck, this may not be a JQuery issue...it may just be CSS (I'm only assuming there's some Jquery I'm overlooking, because no matter what CSS I mess with, it doesn't work... O_o )

    I've uploaded it here so that I could show everyone..I figured it would be easier than copying and pasting a lot of code.

    Flat Design Test

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    It is a CSS issue.
    Code:
    #slider {
    max-width: 620px; /* change this to 950px or so.  You may also have to edit the inline styles created by the script, although I suspect those are drawn from the slider width itself. */
    margin: 0 auto;
    padding-bottom: 80px;
    padding-top: 100px;
    }
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Member celticshinobi's Avatar
    Join Date
    Nov 2012
    Location
    TN, USA
    Posts
    36
    Member #
    33858
    Liked
    1 times
    I kind of figured the script was doing something....I've tinkered with the CSS and it wont change....I thought I had found the issue in the javascript file, but it doesnt seem so...

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Change that and let's see the result.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Member celticshinobi's Avatar
    Join Date
    Nov 2012
    Location
    TN, USA
    Posts
    36
    Member #
    33858
    Liked
    1 times
    It's updated now...although, I'm not sure where to look about the inline styling... I don't know exactly what bit of code is throwing the styles into the html page...

    Flat Design Test

  7. #6
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Look in your bjqs-1.3.min.js file and you will see the width and height specified there.

    If you find it hard to read, use this nifty tool to uniminify it so it is easier to read, and look on line #19 or thereabouts.
    celticshinobi likes this.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  8. #7
    Member celticshinobi's Avatar
    Join Date
    Nov 2012
    Location
    TN, USA
    Posts
    36
    Member #
    33858
    Liked
    1 times
    I tried changing that, but that's not doing the trick either :'(

    Although, I've never used prettyjs before - that came in handy. I'll be using that more often.

  9. #8
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Okay, add this to your CSS. The slider max-width has taken effect, and that's why your slider is moved to the left.
    Code:
    div#banner-fade {max-width:  100% !important;}
    You'll need the !important to override whatever is creating that inline style for it. That's why your slider is all the way to the left.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  10. #9
    Member celticshinobi's Avatar
    Join Date
    Nov 2012
    Location
    TN, USA
    Posts
    36
    Member #
    33858
    Liked
    1 times
    oh! Thank you...that did the trick, I really appreciate the help guys.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 02:37 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com