Ask your own question, for FREE!
Computer Science 15 Online
Spectrum:

Anybody Good with CSS, I got a challenge ):

Spectrum:

So The initial height of a web page is 100%, and I want 3 rectangle shaped elements to be the same height while filling the entire height of the page.

Spectrum:

@extrinix

Spectrum:

@ultrilliam

Spectrum:

oh i forgot to mention im using textareas

Extrinix:

You want the textareas to be the height of the page?

Spectrum:

3 seperate textareas to be the exact same height and fit the page

Spectrum:

but then i run into an issue where the text in the textarea gets cut off at the bottom

Spectrum:

Would it be better to use a span element with contenteditable?

Extrinix:

Well you could do an html like ```html <textarea id="ce1" class="ce" /> <textarea id="ce2" class="ce" /> <textarea id="ce3" class="ce" /> ``` With your css looking something like this maybe? ```css #ce1{ height:100%; width:30%; margin-left:2%; } #ce2{ height:100%; width:30%; margin-left:2%; margin-right:2%; } #ce3{ height:100%; width:30%; margin-right:2%; } .ce{ display:inline-block; } ``` I don't know if that's exactly it, but it's what I seem to remember ¯\_(ツ)_/¯

Spectrum:

no

Spectrum:

i want the textareas to be on top of each other

Extrinix:

On top of each other? May I ask what for-

Spectrum:

code editor

Spectrum:

i have a new design idea

Extrinix:

Ah okay

Extrinix:

Are you trying to get the options to swap out for each other?

Toaster:

still need help?

LillPerson:

@extrinix wrote:
Well you could do an html like ``` <textarea id="ce1" class="ce" /> <textarea id="ce2" class="ce" /> <textarea id="ce3" class="ce" /> ``` With your css looking something like this maybe? ``` #ce1{ height:100%; width:30%; margin-left:2%; } #ce2{ height:100%; width:30%; margin-left:2%; margin-right:2%; } #ce3{ height:100%; width:30%; margin-right:2%; } .ce{ display:inline-block; } ``` I don't know if that's exactly it, but it's what I seem to remember ¯\_(ツ)_/¯
Thanks

Extrinix:

@spectrum now that I take another look at this, you want an tab style? Where you can switch between which one you're currently showing (HTML, CSS, or JS)

Extrinix:

I would try something using jQuery's plugin jQuery UI, and use the Tabs widget, link to that is listed below. https://jqueryui.com/tabs/#default

DeadOfWinter:

I wish I was good with CSS

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!