Solved

Adjust margin around textarea

Posted on 2016-08-09
4
42 Views
Last Modified: 2016-09-02
HI,
I am attaching an html folder in which if you open an html file and select Markdown from option. you will see
the following html :
Screen-Shot-2016-08-10-at-1.18.34-AM.pngIn the top editor there is a margin of 8 px around the body.
But in the bottom one where we have write and preview button
In this one there is no margin.
This is basically a textarea.
I want to make it look like exactly the top editor with margins around.
If add margin: 8px on texarea then the texarea shifts to right side and the scroll bar gets hidden when you type a long text.

Please provide some guidelines how to go about it... For both write and preview tabs.

Thanks
0
Comment
Question by:Rohit Bajaj
4 Comments
 
LVL 20

Expert Comment

by:Russ Suter
ID: 41749408
Should be simple enough with CSS once I can figure out the markup. Unfortunately you seem to have forgotten to attach the folder you mentioned.
0
 

Author Comment

by:Rohit Bajaj
ID: 41749453
Ohh.. Here it is :
Archive.zip
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 41755126
It appears you simply need to target the 2nd editor which is id=cke_editor and give it some margin at the top.  Adjust the 30px to what you feel looks the best.  The higher the number, the more margin.

  #cke_editor{
    margin-top:30px;
  }

Open in new window

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now