gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Write a simple CSS code to create a webpage with three linking webpages
- User
Write a simple CSS code to create a webpage with three linking webpages
- Assistant
/* Style the navigation links */ .navbar a { float: left; color: white; text-align: center; padding: 14px 16px; text-decoration: none; } /* Change color on hover */ .navbar a:hover { background-color: #666; } /* Set a fixed height for the page content */ .content { height: 500px; } /* Page styles */ #home { background-color: lightblue; } #about { background-color: lightgreen; } #contact { background-color: lightyellow; } </style><!-- Page content --> <div class="content"> <div id="home"> <h1>Home Page</h1> </div> <div id="about"> <h1>About Page</h1> </div> <div id="contact"> <h1>Contact Page</h1> </div> </div>