FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

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

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Category image responsiveness

View previous topic View next topic Go down

Luffy
Luffy

Gender : Male
Age : 30
Posts : 291
Points : 4059
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy 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?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12054
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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.
Luffy
Luffy

Gender : Male
Age : 30
Posts : 291
Points : 4059
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy 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..
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12054
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sat 06 Aug 2016, 13:34

Yeah, wrap those tags around your images in the description. Wink
Luffy
Luffy

Gender : Male
Age : 30
Posts : 291
Points : 4059
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy 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
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12054
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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 ?
Luffy
Luffy

Gender : Male
Age : 30
Posts : 291
Points : 4059
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy 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?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12054
Reputation : 2375
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur 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.
Luffy
Luffy

Gender : Male
Age : 30
Posts : 291
Points : 4059
Reputation : 64
Language : Greek, English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
https://www.inforumgr.com/ https://www.facebook.com/inforumgr https://twitter.com/inforumgr

PostLuffy Mon 08 Aug 2016, 01:32

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

PostGuest Mon 08 Aug 2016, 02:27

Thank you ! Smile

Archived
Sponsored content

PostSponsored content

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