?
Solved

Adjust margin around textarea

Posted on 2016-08-09
4
Medium Priority
?
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
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.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

801 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