Responsive Text Editor
Responsive Text Editor
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
}
.editor-container {
width: 80%;
max-width: 800px;
background: white;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.toolbar {
background: #4CAF50;
padding: 10px;
display: flex;
justify-content: space-around;
}
.toolbar button {
background: white;
border: none;
padding: 10px;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s;
}
.toolbar button:hover {
background: #ddd;
}
.editor {
padding: 20px;
min-height: 300px;
outline: none;
border: 1px solid #ddd;
}
.editor:focus {
border-color: #4CAF50;
}