Home Entrance Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
March 29, 2024 - @355.72 (what is this?)
Forum activity rating: Three Star Posts: 46/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :4u: ~~~~~~~~~~~  :4u:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Relative text area size?


« previous next »
Pages: [1] Print
Author Topic: Relative text area size?  (Read 434 times)
Cele
Sr. Member
****

any way the wind blows


View Profile

First 1000 Members!Joined 2022!
« on: April 13, 2023 @444.44 »

If I have a text area defined to be certain px from left, certain px from top... And certain height, is it possible to make it so the height is always x amount of px from the screen bottom? So it would display in different sizes on different devices.

Code
<div id="textarea" style="position:absolute; top:120px; left:160px; width:750px; height:700px;">

How to replace height 700px with, height is always 80px from the screen bottom?
« Last Edit: April 13, 2023 @447.56 by Cele » Logged
doubleincision
Full Member
***


iMood: doubleincision

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #1 on: April 13, 2023 @497.51 »

i rarely use calc so i may be wrong, but i think it can achieve what you're looking for?
Logged



Nullcasting
Casual Poster ⚓︎
*


Great2BeHeretm


View Profile WWW

First 1000 Members!OG! Joined 2021!
« Reply #2 on: April 13, 2023 @679.34 »

 :dunno:  you could try doing percentages instead?

like this:
sudocss {
margin-botton: 35%
}
should theoretically make it so sudocss is 35% off the bottom of the screen. i think.
Logged


:pc: Null Casting, She/They :pc:
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

My textbook is a bit out of date...

Started by diBoard ⛽︎ ∙ Technology & Archiving

Replies: 6
Views: 1540
Last post August 29, 2023 @867.22
by SilkSkull
Collecting 90s Texture CD Links

Started by MelooonBoard ✎ ∙ Art Crafting

Replies: 11
Views: 7028
Last post October 18, 2023 @880.69
by WynnDawnstrider
Website size

Started by RolyBoard ✁ ∙ Web Crafting

Replies: 58
Views: 5166
Last post February 18, 2024 @998.30
by mittens

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi