Latest topics
» IconSkouliki Graphics
by skouliki Yesterday at 05:08

» "Edit this page" feature
by skouliki Yesterday at 01:37

» Dark Mode + Another Question
by Haggis Thu 19 Oct 2017, 10:36

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Van-Helsing Tue 17 Oct 2017, 15:07

» [GAME] What are you thinking right now?
by Ace 1 Tue 17 Oct 2017, 08:09

» [GAME] Count to One Million!
by Ace 1 Tue 17 Oct 2017, 08:07

» [GAME] Last Letter Game
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] World Snake
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] Never have I ever..
by Ace 1 Tue 17 Oct 2017, 08:06

» [GAME] Animal Game
by universecat Mon 16 Oct 2017, 21:43

» [GAME] Post a random picture
by SLGray Mon 16 Oct 2017, 16:28

» Hi everyone!
by skouliki Mon 16 Oct 2017, 02:01

» Hai Guys~
by skouliki Mon 16 Oct 2017, 01:59

» Add a login popup for the toolbar
by Ape Sun 15 Oct 2017, 13:51

» Mobile Usability Test
by Ange Tuteur Sat 14 Oct 2017, 11:20

Recent Tutorials
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests :: 2 Bots

Adam

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Category image responsiveness

View previous topic View next topic Go down

avatar
Luffy

Title :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1669
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Fri 05 Aug 2016, 18:28

Hello all,

I am trying to build up my new theme and i want to add images next to the folder icons for each category. But on phone and on tablets with huge resolutions you can see that the row is enlarging but the image is still there.. I would like it when the row enlarges the image height to enlarge as well to look similar and more professional as a design.

How it should be normally: http://prntscr.com/c25h3a
How it is: http://prntscr.com/c25heh

Of course i know that's from the description of each category but how can i set it so when the description makes the row bigger to make that padding too?

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9539
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 05 Aug 2016, 19:30

@Luffy you should try wrapping the images with a container like this :
Code:
<div class="desc-img"></div>

Then set the container's position to absolute and set both the top and bottom properties to 0. Something like this :
Code:
.desc-img {
  position:absolute;
  top:0;
  bottom:0;
  left:36px;
}

You may need to adjust the position of left so it doesn't overlap the category icon. Oh and make sure to put the background color on this container instead of the image.
avatar
Luffy

Title :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1669
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Sat 06 Aug 2016, 12:44

@Ange Tuteur i have to do that in the Admin Panel in each category? Because in the templates there's no element that i can wrap with the div class..

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9539
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 06 Aug 2016, 13:34

Yeah, wrap those tags around your images in the description. Wink
avatar
Luffy

Title :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1669
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Sat 06 Aug 2016, 13:53

@Ange Tuteur in the template there's no element to wrap those images. How can i wrap them?

I do have a wrap code for the FORUM_DESC in the template but that's what i am using..

http://prntscr.com/c2eubt

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9539
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 06 Aug 2016, 14:12

Oh I'm sorry, I meant wrap the images in the forum description with the tags I gave you. You have each category image in the forum descriptions, right ?
avatar
Luffy

Title :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1669
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Sat 06 Aug 2016, 16:20

Oh so i won't add them in the forum img url and add them in the description as <img> etc?

--------

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4698
Points : 9539
Reputation : 2337
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sat 06 Aug 2016, 18:42

Yeah, try adding your category icons inside the forum description. So you get something like this :
Code:
<div class="desc-img"><img src="CATG_ICON"/></div>
^ That would go into the forum description.
avatar
Luffy

Title :
Information Master
Gender : Male
Age : 23
Posts : 291
Points : 1669
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
Awards :
View all awards
View user profile https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy on Mon 08 Aug 2016, 01:32

That fixed it @Ange Tuteur! Thanks and solved! Wink

--------

avatar
Guest
Guest
View all awards

PostGuest on Mon 08 Aug 2016, 02:27

Thank you ! Smile

Archived

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum