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

CSS

About float issue

<code> <!DOCTYPE html> <html> <head> <title>website</title> <style type="text/css"> /****************Main***/ body { font-family: cursive; }

img { max-width: 100%; }

a { text-decoration: none; }

header { text-align: center; padding: 5px 5px; margin: 3px 0; }

nav { padding: 5px 10px; margin: 2px 0px; }

nav ul { font-size: 24px; list-style-type: none; padding: 5px 5px; margin: 1px 0px; }

nav li { display: inline-block; padding: 1px 20px; }

/****************content***/

wrapper {

max-width: 940px;
margin: 0 auto;
padding: 5px 15px;

} h1, h2 { color: grey; text-align: center;

}

.detail { border: 3px solid red; padding: 0 5px; margin-right: 50%; }

aside { border:3px solid black; margin-right: 50%; padding: 0 50px; float: right;

} </style> <meta charset="utf-8"> </head> <body> <header> <a href="index.html">LOGO</a>

        <nav>

            <ul>

                <li><a href="index.html" class="select">Home</a></li>
                <li><a href="#">About us</a></li>
                <li><a href="#">Contact us</a></li>
                <li><a href="#">Privacy Policy</a></li>
                <li><a href="#">Terms &amp; Condition</a></li>

            </ul>

        </nav>

</header>
    <div id="wrapper">

        <h1>Welcome </h1>

        <aside >
            <h2>Login here</h2>

            Username:<input type="text" name="username" placeholder="Username"><br>
            Password:<input type="password" name="Password" placeholder="Password"><br>
                <a href="#">Forgot Password?</a>

            <br>
            <input type="submit" value="Login!"><br>

            If you are not member click here to <a href="#">Signup</a>

        </aside>
        <p class="group">

        <p class="detail">
            Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
        </p>



        <p class="middle">
            Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

        </p>
    </p>


        <footer>


            &copy;  All Right Reserved 2014

        </footer>

    </div>

</body> </html>

</code>

What's the problem?

1 Answer

Charles Gray
Charles Gray
19,470 Points

are you doing inline css stylesheets or external css stylesheet?