Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 938321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:37:27+00:00 2026-05-15T21:37:27+00:00

Very easy question. I have been using CSS for a while but rarely use

  • 0

Very easy question. I have been using CSS for a while but rarely use + sigh for my code. Could any one explain what the best time is to use it? I couldn’t find anything from Google…Thanks a millions…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:37:28+00:00Added an answer on May 15, 2026 at 9:37 pm

    I’ve found that adjacent sibling selectors are useful when you want to apply special styling to the first element of a series of elements. For example, if you want to style the first paragraph of an article differently from the rest, you could use:

    p {
        /* styles for the first paragraph  */
    }
    
    p + p {
        /* styles for all other paragraphs */
    }
    

    This can replace using class="first" in many situations.

    EDIT: Using the first-child pseudo-class would work better for this specific case, since it’s supported by a wider range of browsers. (Thanks alex)

    You might also want to adjust how certain elements are positioned when next to each other. If you have an unordered list that looks fine on its own, but needs less padding at the top when it’s next to a paragraph, you could use:

    ul {
        padding-top: 1em;
        /* Default ul styling */
    }
    
    p + ul {
        padding-top: 0;
        /* special styling for lists that come after paragraphs */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 536k
  • Answers 536k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I tested it compiling with iphone 4.1 SDK and runngin… May 17, 2026 at 1:20 am
  • Editorial Team
    Editorial Team added an answer You could possibly use the PowerManager to make it reboot… May 17, 2026 at 1:20 am
  • Editorial Team
    Editorial Team added an answer I am unable to recreate via a creation of a… May 17, 2026 at 1:20 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have been using django ORM, it's nice and very easy, but this time
I'm relatively new to PHP and have been writing a project using what I
I have been using Grails for the past few months and I really like
I have been using asp.net programming just from few months and I have to
I have a very specific problem and i'm looking for input on a good
I have been learning C++ in school to create small command-line programs. However, I
I have been struggling with Xcode 3, and decided to jump directly to Xcode
I have been working on developing some RESTful Services in Django to be used
I am a systems programmer, so i just know some basic css/html. I like
I'm a .net developer by trade but I'm looking to expand to PHP. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.