Solved

Adjust margin around textarea

Posted on 2016-08-09
4
65 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jquery 7 33
How to add custom html-5 element to a dynamically generated link? 4 24
How do I add counter to html listbox using jquery 2 26
Problem in javascript 17 25
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

749 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