Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Kendall McCall
Kendall McCall
8,177 Points

Working on a TO-DO app but struggling with a simple HTML/CSS bug

Working on a To-Do app and struggling with a simple html/css issue to some but its kicking my but trying to fix my button so it will appear inside of the form and I want it the size of the button to be bigger any tips or extra set of eyes can help me solve this issue be greatly appreciated :)

Kendall McCall
Kendall McCall
8,177 Points

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"> <link rel="stylesheet" href="./style.css"> <title>Todo List</title> </head> <body>

<header> <h1>Kendall's To-do List</h1> </header>

<form> <input type="text" class="todo-input"> <button class="todo-button" type="submit"> <i class="fas fa-plus-square"></i> </button> </form> <div class="todo-container"> <ul class="todo-list">

</ul>

</div>

<script src="./app.js"></script> </body> </html>

2 Answers

John Maxwell
John Maxwell
9,249 Points

Post your code so we can see what's happening now and try to help

Kendall McCall
Kendall McCall
8,177 Points

im trying to but when I post its all scrambled into one line so not really readable

John Maxwell
John Maxwell
9,249 Points

As for the sizing of the button, you can target it in CSS like the following:

.todo-button {
     font-size: 2rem /*adjust as necessary*/
}

I am still trying to understand where you want to place the submit button. Right now it is placed at the end of the input field. Where would you like it to be?
Kendall McCall
Kendall McCall
8,177 Points

I want to place the button inside of the form