A portfolio website designed to be sold on ThemeForest - (update styles.css) Part 10

 Let's update the `styles.css` file to include styles for the `services.html` page, ensuring it fits with the existing theme and maintains consistency across all pages.

### Updated CSS (styles.css)


```css

/* General Styles */

body {

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    line-height: 1.6;

    background-color: #f8f9fa;

    color: #333;

}


.container {

    width: 90%;

    margin: 0 auto;

}


/* Navbar Styles */

.navbar {

    background: #333;

    color: #fff;

    padding: 1rem 0;

}


.navbar .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}


.nav-menu {

    list-style: none;

    display: flex;

}


.nav-menu li {

    margin-left: 2rem;

}


.nav-menu a {

    color: #fff;

    text-decoration: none;

    font-weight: bold;

}


/* Section Title Styles */

.section-title {

    text-align: center;

    margin-bottom: 3rem;

    font-size: 2.5rem;

    color: #333;

}


/* Services Section Styles */

.services-section {

    padding: 4rem 0;

    background: #fff;

    text-align: center;

}


.services-list {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

    margin-top: 3rem;

}


.service-item {

    padding: 2rem;

    background: #f4f4f4;

    border-radius: 5px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}


.service-item h3 {

    font-size: 1.8rem;

    margin-bottom: 1rem;

    color: #333;

}


.service-item p {

    font-size: 1.1rem;

    line-height: 1.6;

    color: #666;

}


/* Footer Styles */

.footer {

    background: #333;

    color: #fff;

    padding: 1rem 0;

    text-align: center;

}


.footer p {

    margin: 0;

}


.social-links {

    list-style: none;

    padding: 0;

    display: flex;

    justify-content: center;

    gap: 1rem;

}


.social-links li {

    margin: 0;

}


.social-links a img {

    width: 24px;

    height: 24px;

    transition: transform 0.3s ease;

}


.social-links a img:hover {

    transform: scale(1.2);

}

```


### Explanation:


1. **General Styles**: Updated `body` background color and text color for better readability on light backgrounds (`#f8f9fa` for background and `#333` for text).


2. **Navbar Styles**: Styles remain consistent with dark background (`#333`) and white text (`#fff`).


3. **Section Title Styles**: `.section-title` styles ensure consistent appearance of section titles across all pages with centered alignment, appropriate margin, and font size.


4. **Services Section Styles**: 

   - `.services-section` has a white background (`#fff`) and is centered (`text-align: center`).

   - `.services-list` uses CSS grid (`display: grid`) to arrange services in a responsive grid layout (`grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))`).

   - `.service-item` styles each service with padding, light gray background (`#f4f4f4`), border-radius, and box-shadow for a card-like appearance.

   - `.service-item h3` and `.service-item p` define styles for service titles and descriptions.


5. **Footer Styles**: 

   - `.footer` maintains a dark background (`#333`) with white text (`#fff`) and central alignment.

   - `.social-links` aligns social media icons (`img`) horizontally with a gap (`gap: 1rem`) and hover effect (`transform: scale(1.2)`).


### Integration:


- Ensure `styles.css` is linked correctly in all HTML pages (`<link rel="stylesheet" href="styles.css">`).

- Replace placeholder content (`Web Design`, `Frontend Development`, `UI/UX Design`, `Graphic Design`) with actual services offered by your portfolio.


By updating `styles.css` with these styles, you maintain a cohesive design across all pages of your portfolio theme, enhancing user experience and visual appeal. Adjustments can be made based on your specific design preferences and requirements.

Post a Comment (0)
Previous Post Next Post