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

  • SEARCH
  • Home
  • 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 960649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:12:58+00:00 2026-05-16T01:12:58+00:00

Code is as follows: <div id=compare_view align=center> <div id=compv-navbar> <img src=image1.png> | <img src=image2.png>

  • 0

Code is as follows:

<div id="compare_view" align="center">

    <div id="compv-navbar">
        <img src="image1.png"> | <img src="image2.png"> | <img src="image3.png"> | Text can be here
    </div>    
</div>

I would like to be able to manipulate all of the images within the ‘compv-navbar’ div.

I know I could give each image a unique ID and select them that way, but I want to manipulate all the images within that compv-navbar div at the same time.

Edit: Sorry, I would like to select it with CSS. I thought it was obvious from the tags.

  • 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-16T01:12:58+00:00Added an answer on May 16, 2026 at 1:12 am
    #compare_view #compv-navbar img { } 
    

    The first id isn’t really necessary but makes it more specific and linear-like. You can go ahead and just use #compv-navbar img if you want.

    If you want to manipulate with javascript, getElementById on #compv-navbar and getElementsByTagName('img') using that as a context.

    jQuery-wise it would be $('#compv-navbar img')

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The code is as follows: <div id=compv-navbar> <a href=#><img src=image1.png id=icon1></a> | <a href=#><img
The code is as follows: <div id=compv-navbar> <a href=#><img src=image1.png id=icon1></a> | <a href=#><img
My code is as follows: $image_array = array( src => base_url() . img/ajax-bar_loader.gif );
Code as follows: <div class=mama> <div class=son>Item 1</div> </div> <div class=mama> <div class=son>Item 2</div>
I have a code as follows; <div id=scroller style=width: 50%; overflow: auto;> <iframe height=100%
I have a snippet of Javascript code as follows: <div id=TestControl contentEditable=true style=width:200px; position:absolute;
My code is follows: <div class=sidebar id=southsidebar> <!-- archives --> <div class=widget> <h3>Archives</h3> <div
I have a HTML code as follows; <div>Content table with varying height</div> <div id=buttons>
Hey I have my code as follows at the moment <script type=text/javascript> var activeTabId
My current code is as follows: <div class=fr_search> <form action=/ accept-charset=UTF-8 method=post id=search-theme-form> .......

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.