Jump to content
Sign in to follow this  
laurenp

How can I make the feature slider the same width as the canvas?

Recommended Posts

laurenp

I want to make my feature slider equal to the width of the canvas so there is no margin either side. I've tried messing with #feature and #feature_slider but no luck. I've looked at it using firebug and just can't see how to control the width without throwing things out. It seems to be generated dynamically depending on your settings. Any help on this would be appreciated...

Share this post


Link to post
Share on other sites
laurenp

Hi there, I added the following code into my CSS as per the link you sent but no joy. FYI the page width is set to 960 and I made the banner 980 just to have a bit of buffer but it still has the white border. I also tried a value of 100% but no luck their either. What am I doing wrong? #feature_slider div.default-features {width: 960px;} #feature-area {width: 960px} .home #feature-footer {width: 960px;} .home #feature_slider{width:960px;} .home #feature-area, .feature-wrap {width: 960px;} .home #feature-footer {width: 960px;} Cheers, Lauren

Share this post


Link to post
Share on other sites
catrina

The white border is actually extra margin space on either side of the banner. That needs to be reduced, rather than making the canvas wider (if the width gets bigger, the padding will remain the same). Does that make sense?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
nicosec

where is that margin controlled? I am having trouble locating where that is set in the CSS.

Share this post


Link to post
Share on other sites
Jenny
	#page-main .content {
	    border-left: 0;
	    border-right: 0;
	}
	.content {
	    margin: 0;
	}
	

.. will remove your margins and border spacing. But something is still off. Try playing around with the PlatformPro Layout settings until you get the width right.


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
laurenp

Thank you to everyone for your help! I set my site width to 980px in the layout settings and used the following CSS and it worked... #page-main .content { border-left: 0; border-right: 0; } .content { margin: 0; } .fixed_width #page, .fixed_width #footer, .canvas #page-canvas { width: 980px !important; } Cheers! Lauren

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×