The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Change Topic Title width and height

    Valoish
    Valoish
    Forumember


    Female Posts : 291
    Reputation : 54
    Language : English
    Location : NYC

    Solved Change Topic Title width and height

    Post by Valoish November 25th 2016, 6:01 pm

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Mozilla Firefox, Google Chrome, Internet Explorer, Opera, Safari
    Screenshot of problem : http://image.prntscr.com/image/dc8eab4b13c442058bede354d76d196e.png
    Who the problem concerns : All members
    When the problem appeared : Today
    Forum link : http://www.canvasforums.com

    Description of problem

    Is there a way to change the textarea/input width for topic titles? I have a topic title colorizer thing on my forum, but since I increased the padding on the dropdown menus the colorizer shifted under the topic title field. It used to be next to it.

    Also, is there a way to change the height/add padding to the input area so that it's the same height as the dropdown
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Change Topic Title width and height

    Post by TheCrow November 25th 2016, 10:05 pm

    Hello @Valoish,

    How long in pixels you want the input to be?
    You can use this code for it's width and height:
    Code:
    input.post
    but this will change the bottom 2 as well. If you want only the title input to change then you can use this one:
    Code:
    input.post[name="subject"]



    Change Topic Title width and height Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Valoish
    Valoish
    Forumember


    Female Posts : 291
    Reputation : 54
    Language : English
    Location : NYC

    Solved Re: Change Topic Title width and height

    Post by Valoish November 25th 2016, 11:43 pm

    @Luffy,

    I'm not too sure how many pixels.. I'd prefer for it to be responsive (so percentages, I guess) so that it looks good on all screen resolutions.
    I played around with the code you gave me and I made the input areas and the topic color selector float left. It looks fine on PC but when I open it on mobile its still misaligned x_x
    Any way to fix it for mobile? Or would I just use a media query and adjust the CSS values that way?

    Edit: I figured it out~! Now it works well on both PCs and Mobile Devices

    This is the CSS I added:
    Code:
    input.post, textarea.post { float: left; }

    select[name=topic_color] { float: left; }

    @media only screen and (min-device-width: 320px) and (max-device-width: 485px) { input.post[name="subject"] { width: calc(100% - 176px)!important; } }

    Thanks for your help, Luffy! ^^
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Change Topic Title width and height

    Post by TheCrow November 25th 2016, 11:59 pm

    Sure thing! No problem! Have a nice day!

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



    Change Topic Title width and height Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!

      Current date/time is September 22nd 2024, 6:23 pm