diff --git a/index.html b/index.html index 88079bc..c608364 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,8 @@ + + Your Name - Portfolio @@ -18,6 +20,9 @@
  • About Me
  • Projects
  • Contact
  • + + +
  • FAQ
  • @@ -104,7 +109,35 @@

    20XX

    -
    + + +
    +
    +

    Frequently Asked Questions

    + +
    + In which year do I study? +

    I currently study in 2nd year.

    +
    + +
    + Am I the member of any of the college societies? +

    Yes, I am the part of college societies named_____

    +
    + +
    + What are my hobbies? +

    I have various hobbies , I like to ___name of hobbies___

    +
    + + + + +
    +
    + + +

    Contact Me

    diff --git a/styles.css b/styles.css index e20d8d9..8360a37 100644 --- a/styles.css +++ b/styles.css @@ -252,3 +252,55 @@ footer { .scroll-up-btn:hover { filter: brightness(90%); } + +/* FAQ section styling */ +.faq { + background-color: #f5f5f5; + padding: 50px 0; + text-align: left; /* Align content to the left */ + border-radius: 15px; /* Increase border-radius for the FAQ section */ +} + +.container { + width: 80%; + margin: 0 auto; +} + +h2 { + color: #333; + font-size: 2em; + margin-bottom: 30px; +} + +details { + margin-bottom: 20px; + border-radius: 15px; /* Increase border-radius for the details */ + overflow: hidden; +} + +summary { + background-color: #0277bd; + color: #fff; + padding: 15px 20px; + font-size: 1em; + cursor: pointer; + outline: none; +} + +summary::-webkit-details-marker { + display: none; +} + +summary:focus { + outline: none; +} + +p { + background-color: #fff; + padding: 15px; + margin: 0; + border: 1px solid #ddd; + border-top: none; + border-radius: 0 0 15px 15px; /* Increase border-radius for the paragraph */ + text-align: left; +}