DexSnake Posted November 9, 2015 Share Posted November 9, 2015 I want to make some changes to the appearance of one of my .tpl files - the sub catagories specifically. The first image is how my site looks currently, and the second is how I would like it to look. I just adjusted the width of the div with the container class to expand it out to accomodate five images in one row through the inspector in Firefox. However I am not sure how to go about changing this in the .tpl file. I will also need to adjust the breakpoint for the responsive aspect. Could someone help me out with this? Link to comment Share on other sites More sharing options...
Michael_D Posted November 9, 2015 Share Posted November 9, 2015 You should be able to do it all with CSS files by adjust widths of various division containers. Maybe this will help you. You could set the .container at width:100% rather than a set px width; and it will adjust. You can also create a duplicate CSS rule prefixed with the @media declaration to adjust it for various sized displays. There are several ways to do what you like. By using max-width (allows room for various other factors and is responsive), min-width (also allows room for various other factors) , width(not as flexible or responsive), and using percentage (more responsive) or px(not responsive). #columns { max-width: 1170px;} or #columns { max-width: 100%;} .container {max-width: 1170px;} Link to comment Share on other sites More sharing options...
vekia Posted November 10, 2015 Share Posted November 10, 2015 if oyu want to put these styles to .tpl file dont forget to use {literal} {/literal} tags, otherwise smarty will treat code as a part of smarty sytnax - this will end with errors Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now