i’m using twitter bootstrap 3.2.0
here is code:
.textarea textarea {
background-color: white;
background-image: url("http://ello.96.lt/images/as.jpg");
line-height: 1.56em;
padding-left: 4.2em;
padding-right: 0.3em;
border: solid 1px #525252;
}
<div class="col-lg-8 col-md-8 col-xs-12">
<!-- Name input-->
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-xs-8 textarea">
<div class="form-group float-label-control">
<label for="" style="font-size: 2em;">Please leave some of yours contact details below</label>
<textarea id="email_comment" class="form-control" style="color: #424242 !important;" placeholder="Press here with mouse to edit and start writing a letter for me" rows="14"></textarea>
</div>
</div>
<!-- Form actions -->
<div class="col-lg-12 col-md-12 col-xs-12 form-group submit">
<button id="submit" type="button" class="btn btn-sunny text-uppercase btn-lg">Send</button>
</div>
</div>
i want to do this:
http://jsfiddle.net/bluetidepro/3Rdqy/
http://bookofzeus.com/articles/css/css-styling-textarea-give-notebook-notepad-look/
there is double border in left and bottom.
i really want to add these 2 borders to my textarea. i tryed a lot of ways, but still doesnt work
3
Answers
that will make a red border bellow the textarea. Attach your :before and :after on a block element (div) not on the textarea (maybe that’s what you tried and did not work). I also suggest that you put a div around the textarea itself, with width: auto, so that your border will scale with your textarea, not the .textarea div that also contains the label.
I’ve added a wrapper element around your textarea, and then used a pseudo element to make the narrower border on the bottom.
Just add this css
Check This DEMO