mail@pastecode.io avatar
7 months ago
2.0 kB
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Your Page Title</title>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;

        main {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;

        p {
            line-height: 1.5;

        /* Media Query for Mobile Devices */
        @media (max-width: 600px) {
            /* Change the navigation to a block-level element */
            nav {
                display: block;
            /* Add some styling for the navigation links */
            nav a {
                display: block;
                margin-bottom: 10px;
                text-decoration: none;
                color: #333;

        /* Media Query for Desktop */
        @media (min-width: 601px) {
            /* Use CSS Grid to display navigation and content side by side */
            body {
                display: grid;
                grid-template-columns: 1fr 3fr; /* Adjust the width as needed */
                grid-gap: 20px;
            /* Style for the navigation links in desktop view */
            nav {
                display: flex;
                flex-direction: column;
        <!-- Navigation -->
            <a href="#">Home</a>
            <a href="#">About</a>
            <a href="#">Services</a>
            <a href="#">Contact</a>
        <p>Our professional staff takes pride in its working relationship with our clients by offering personalized services that listen to their needs, develop their target areas, and incorporate these items into a website that works.</p>