0
Hello everyone I’m trying for a div
next to another div
as you can see below, I’m not sure what I’m doing wrong here’s the code:
.div {
background-color: #cecece;
margin-right: 700px;
padding-bottom: 424px;
border: inset
}
<!DOCTYPE html>
<html>
<head>
<title>C#</title>
</head>
<body>
<div class="div">
</div>
<div style="background-color: #000; margin-left: 400px; padding-bottom: 424px">
w
</div>
</body>
</html>
The code is not performing very well in this post so if you need to see the result in this page you must copy the code.
Thanks for the help is that during the waiting time the only solution I found was this
.Block {background-color: #cecece; margin-left: 300px; margin-top: -430;padding-bottom: 424px;border: inset; margin-right: 600px;}
worked but was bad– Pekita
Hehe this must not be good :P . Obgado, glad that solved @Pekira
– Miguel
I was here continuing to program and I would like to know if there is any way to put a textbox in a div without the div starting to change the size <!-- language: lang-js --> <! DOCTYPE html> <html> <head> <title>C#</title> </head> <body> <!-Divcode-> <div class="code"> <textarea Rows="10" readonly="readonly" placeholder="""> </textarea> </div> div<!-Block->#Xa; <div="block" style="> &#div; /<div> <!-Divscript-> <div class="script"> </div> </body> </html>
– Pekita
'cause I have no idea how through this as you possessed
– Pekita
You can always put a fixed length on the div: ex:
width:200px;
and the textbox:display:block;width:100%;
. I haven’t tried it but I’m pretty sure it works @Pekira– Miguel
OK I’ll try right away
– Pekita
You have an example: https://jsfiddle.net/g5of2np2/1/
– Miguel
this part of the textbox put css or html?
– Pekita
Let’s go continue this discussion in chat.
– Miguel