Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Need a help with HTML - Mobile VS Desktop Version

Hello,

I would need a little help with CSS and HTML and I hope there is someone skilled enough to give me an advice.

I am having problem that "text-align: left" looks terrible in the mobile version: https://imgur.com/a/LnvT7al
and I would need to make it look like this https://imgur.com/a/po2pZYL (keep "text-align: left" and have it centered on the middle)

while keep the desktop version (from screenshot 1, which looks properly in the desktop version) unchanged just with "text-align: left".

website: https://kutt.it/XTfUgd (shortened link)
[Image: VmK9IT8.png]

I'm on my phone at work, and truth be told, my reading comprehension is bad as-is.

It looks like for small screens you want to override the text alignment property. This is rather simple, just look into CSS media queries and simply target screens under 650px or something.

Once I get home, I'll be able to write up a demo of you haven't figured it out.

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
(Jul 13, 2018 09:15 AM)Nachfolger Wrote:  I'm on my phone at work, and truth be told, my reading comprehension is bad as-is.

It looks like for small screens you want to override the text alignment property. This is rather simple, just look into CSS media queries and simply target screens under 650px or something.

Once I get home, I'll be able to write up a demo of you haven't figured it out.

Awesome, I would be really grateful! I'll wait for you to be sure it is done properly. Thank you so much.
[Image: VmK9IT8.png]

(Jul 13, 2018 08:28 AM)#TDR Wrote:  Snip

(Jul 13, 2018 09:15 AM)Nachfolger Wrote:  It looks like for small screens you want to override the text alignment property. This is rather simple, just look into CSS media queries and simply target screens under 650px or something.
.

This dude is correct...
Name your div class = text-middle
@media only screen and (max-width: 650px) {
   .text-middle {
     text-align: center;  
   }
}
If this doesn't work what I normally tend to do is use padding-left and right to get it perfect for the responsive page.
This would be your quick solution Dickhead


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Not Your Average OrangeNov 19, 2017 05:00 PM 2 130 Nov 19, 2017 05:00 PM
Last Post: Not Your Average Orange
by ShoughtNov 1, 2017 02:07 PM 2 116 Nov 1, 2017 02:07 PM
Last Post: Shought
by priluxDec 10, 2016 11:18 AM 1 236 Dec 10, 2016 11:18 AM
Last Post: VirtualFrost