-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 30, 2018 at 2:55 am #1089062Hi,
I just tried to inspect element on your site but didn’t see the code you mentioned above, I used this and it seems to work fine: http://prntscr.com/i7gpmb
#Mod146 .column { width: 50%; float: left; padding: 10px; height: 300px; }
Regards
January 30, 2018 at 7:17 am #1089090Hi Saguaros
Thanks for the reply but, again, I couldn’t get it to render like you did. Please can you:
1: post your html code (I can’t expand your div’s in the image obviously 🙂 )
2: where are you placing your css?
3: please can you explain how the custom.css file works, and where you place it- I tried reading the documentation on custom.css but it would not load custom.css in the folder location mentioned
- currently my custom.css is in the /templates/ja_sugite/css folder but the documentation says it must be in T3-Assets?
- why can’t I see the custom.css file loaded when I inspect the elements? I know it’s loading because my flow diagram tree is styled, but it doesn’t show the custom css only css-69a01-28454.css ? can you explain how my custom css gets added to css-69a01-28454.css?
This is my first time using T3 so this might be the problem?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 30, 2018 at 8:29 am #1089099Hi Tristan,
Templates built with T3 framework support the ‘custom.css’ file by default (but this file doesn’t exist by default, you just need to create it in the folder: root/templates/ja_your_default_template/css/) and your site will load this file
When you inspect your site and still see CSS files like css-69a01-28454.css in ‘t3-assets’ folder, it’s not recommended to edit these CSS files as they are temporarily files generated when you enable the Optimize CSS option in template manager: Admin panel > Extensions > Templates > JA Sugite > General tab > Optimization.
In order to see the correct CSS file, you just go to this option in template manager and disable it.
If it still doesn’t work, kindly share credentials of your site: admin + FTP account, I will take a look.
Regards
January 30, 2018 at 8:33 am #1089103Yes thanks I had created the custom.css and it loaded some of the styles. I will do the optimization now as suggested.
Could you please paste the html you used in your above eg so that I can test it as you got it to work.
Thx
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 30, 2018 at 8:35 am #1089105I inspected directly on your site and suggested above CSS, I don’t have HTML code of that module.
January 30, 2018 at 8:38 am #1089107No just the HTML you used with the CSS
Mod146 .column {
width: 50%; float: left; padding: 10px; height: 300px;
} Surely you used html to render the css?
Basically i want to copy your css and html to make sure I am at the right starting point. My css should work but it isn’t so I want to use your code directly to check
- This reply was modified 6 years, 10 months ago by Tristan.
January 30, 2018 at 8:45 am #1089111I’m accustomed to templates having CSS for responsive 2-column div’s. That is actually what I am after but made my own when I couldn’t find the template css. Maybe you have a better idea what the template 2-column css is?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 30, 2018 at 9:22 am #1089118I’m not quite sure of what you’re saying, again, I inspected your site and try with the CSS I posted above, I don’t have HTML code, it WAS on your site.
This template is built with Bootstrap, you can check out the grid system of Bootstrap for more info:
https://getbootstrap.com/docs/3.3/css/#grid
http://getbootstrap.com/docs/3.3/examples/grid/January 30, 2018 at 9:45 am #1089122Ok that explains it a little better. It works now (it will take me time to understand the logic flow of the design, but thanks). http://41.185.8.134/~samdtcoz/
The module i was struggling with is the "3rd row" – green row with the flow diagram.
Thanks again
- This reply was modified 6 years, 10 months ago by Tristan.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
January 30, 2018 at 10:03 am #1089128As I can see that there are 2 columns, is that ok now?
January 30, 2018 at 10:11 am #1089130As I can see that there are 2 columns, is that ok now?
Yes thanks for the help / explanation
-
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by Tristan 6 years, 10 months ago.
The topic ‘Custom CSS / Module’ is closed to new replies.