Guest User

style.css\

a guest
Jun 24th, 2025
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.22 KB | None | 0 0
  1. header {
  2.     background: pink;
  3.     /* review centering things with css */
  4.     text-align: center;
  5. }
  6.  
  7.  
  8. nav ul {
  9.     /* temporary css that clarifies how the nav ul element works  */
  10.     border: 1px solid magenta;
  11.     /* removes the dots in the list for the navbar */
  12.     list-style: none;
  13.     /* uses flexbox for the element and puts it on the same horizintal line */
  14.     display: flex;
  15.     /* Makes it so the navbar doesn't have space on the left and right side */
  16.     padding: 0;
  17.     /*
  18.     Don't use "justify-content: space-between;" or witdh...
  19.     because there could be multiple navbar links and it won't work.
  20.     The solution is to use margin in the  navbar links
  21.     */
  22. }
  23.  
  24. .searchform{
  25.     /* uses flexbox and puts the word search + the search form and the search button on one horizintal line */
  26.     display: flex;
  27.  
  28. }
  29.  
  30. nav li {
  31.     /* temporary css that clarifies how the  element works   */
  32.     border: 2px dotted orange;
  33.     /* add margin to the left and right side */
  34.     margin: 0, 10em;
  35. }
  36.  
  37. nav a, .searchform {
  38.     /* temporary css that clarifies how the elements works  */
  39.     border: 3px solid green;
  40.     /* Makes  text bigger to better align with the navbar*/
  41.     font-size: 1.35rem;
  42. }
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment