Solved

Adjust margin around textarea

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

863 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