The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

fixed avatar size phpbb3

View previous topic View next topic Go down

Solved fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 6:31 am

what code use to fix avatar size

form version: phpbb3

http://gsmcotabato.forumotion.com/


Last edited by zenzo on March 14th 2017, 5:03 am; edited 1 time in total
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 13th 2017, 6:35 am

Hi there, add this to your CSS and change the height and width to what you see fit.

Code:
.postprofile dt img {
  width: 0px;
  height: 0px;
}
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 7:14 am

@Draxion wrote:Hi there, add this to your CSS and change the height and width to what you see fit.

Code:
.postprofile dt img {
  width: 0px;
  height: 0px;
}

how about in the log in widgets..
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 13th 2017, 7:43 am

@zenzo wrote:
@Draxion wrote:Hi there, add this to your CSS and change the height and width to what you see fit.

Code:
.postprofile dt img {
  width: 0px;
  height: 0px;
}

how about in the log in widgets..

Code:
.mod-login-avatar dt img {
  width: 0px;
  height: 0px;
}
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 8:02 am

it works, could you add code to align it to center text and image
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 13th 2017, 8:13 am

Replace the code I gave you with this one.

Code:
.postprofile dt img,
.mod-login-avatar dt img {
  width: 0px;
  height: 0px;
}

.module .box-content .mod-login {
    text-align: center;
}
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 8:40 am

Code:
.module .box-content .mod-login {
    text-align: center;
}

this code is not working
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 13th 2017, 8:41 am

Which are you trying to center since your profile details are already centered?
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by SLGray on March 13th 2017, 8:50 am

Do you mean the login widget?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 38470
Reputation : 2587
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 9:20 am

@SLGray wrote:Do you mean the login widget?
yes

avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by SLGray on March 13th 2017, 9:42 am

Code:
.module .box-content .mod-login-avatar {
  text-align: center;
}


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 38470
Reputation : 2587
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 13th 2017, 10:44 am

nothing happen sir,
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 13th 2017, 2:48 pm

I'm afraid you may have to use JavaScript to get what you want since you can't align an image without using HTML and I know you can't access the coding in the widget directly.
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by An on March 13th 2017, 3:13 pm

@Draxion wrote:I'm afraid you may have to use JavaScript to get what you want since you can't align an image without using HTML and I know you can't access the coding in the widget directly.
Did you try removing the floats on the avatar's parent container and centering the textual contents? By default the login avatar is floating to the left which prevents it from taking up the whole line and rendering text-align useless.
Code:
.module .box-content .mod-login-avatar {
  text-align:center;
  float:none;
}

Also you should check out this article for centering stuff, because it shows how to center things like images with css only. It's good to have on hand when you need to center something.
avatar
An
Forumember

Posts : 44
Reputation : 24
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 14th 2017, 12:41 am

@An wrote:
@Draxion wrote:I'm afraid you may have to use JavaScript to get what you want since you can't align an image without using HTML and I know you can't access the coding in the widget directly.
Did you try removing the floats on the avatar's parent container and centering the textual contents? By default the login avatar is floating to the left which prevents it from taking up the whole line and rendering text-align useless.
Code:
.module .box-content .mod-login-avatar {
  text-align:center;
  float:none;
}

Also you should check out this article for centering stuff, because it shows how to center things like images with css only. It's good to have on hand when you need to center something.

this one works fine,, thank you very much...

and what code represents the text below the avatar,..i want to try to center it also
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Draxion on March 14th 2017, 4:41 am

Code:
.module .box-content .mod-login {
}
avatar
Draxion
Helper
Helper

Male Posts : 1038
Reputation : 156
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by zenzo on March 14th 2017, 5:03 am

@Draxion wrote:
Code:
.module .box-content .mod-login {
}




some text not moving, but nevermind, i guess css wont work for that

thanks for the reply guys..

this topic is now solve
avatar
zenzo
Forumember

Posts : 562
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: fixed avatar size phpbb3

Post by Luffy on March 14th 2017, 11:48 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules





avatar
Luffy
Manager
Manager

Male Posts : 4508
Reputation : 457
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

View previous topic View next topic Back to top


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