Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How can I center this slideshow...again?

Posted on 2013-12-07
7
270 Views
Last Modified: 2013-12-14
I have a site here:

www.particletechlabs.com

This is a Joomla 3.2 site and I recently upgraded the Gantry framework to v4.1.20.

After I did this my slideshow was no longer centered on the homepage.

Somehow the container for it has changed.

Below is the code I used but nothing I try works:

.slider-wrapper {overflow:hidden; width:1197px; height: 290px; margin:0 auto;}
.vt_nivo_slider {background:url(http://particletechlabs.com/templates/rt_panacea/images/slideback.png) repeat;}

Any help is appreciated.
0
Comment
Question by:Donnie Walker
  • 5
7 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39703729
Slider wrapper properties have been overridden and I think you will have to hack it by putting the margin:auto inline in  the div with id "vtnivo110". The update just added more bloat and crap.  If you keep adding crap on top of crap, it will reach the point where you can no longer fix anything without it imploding. If move the margin:auto inline does not work, you might already be there.  That might be a good thing if it will force a re-write or re-design to something a little more efficient and maintainable.

Cd&
0
 
LVL 18

Expert Comment

by:Steven Harris
ID: 39703889
Strangely enough...

PTL
0
 

Author Comment

by:Donnie Walker
ID: 39703895
yes, I just did the display:inline Cobol suggested but it is still not right. There should be a gray background (slideback.png) that goes 100% across the screen.

Also, before I updated the framework the slide hit the top of the white content area and did not have the shadow it was now.

screenshot
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Donnie Walker
ID: 39703941
and now it has automatically shrunk my image to 962x232.

the original is 1197x290.

no idea how that happened.
0
 

Author Comment

by:Donnie Walker
ID: 39703945
changed display:inline to display:block and now the slider is the correct size.

however, for some reason, it will not go past the left side so it can be centered.
0
 

Accepted Solution

by:
Donnie Walker earned 0 total points
ID: 39706132
Got this answered in another thread:

#vt_nivo_slider110 {margin-left: -118px;}

It is now centered.
0
 

Author Closing Comment

by:Donnie Walker
ID: 39718503
Got this answered in another thread:

http://www.experts-exchange.com/Software/Server_Software/Content_Management/WebBased_CMS/Joomla/Q_28313564.html

#vt_nivo_slider110 {margin-left: -118px;}

It is now centered.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question