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 961327
In Process

The Archive Base Latest Questions

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

<div id=compv-navbar> <a href=#><img src=image1.png id=icon1></a> | <a href=#><img src=image2.png id=icon2></a> | <a href=#><img

  • 0
<div id="compv-navbar">
  <a href="#"><img src="image1.png" id="icon1"></a> | <a href="#"><img src="image2.png" id="icon2"></a> | <a href="#"><img src="image3.png" id="icon3"></a> |  This is the text I want to select and style specifically.
</div>

I would like to do this in HTML/CSS. No jQuery or Javascript.

Also…I would like to do this without using another <div> tag, because it throws off the presentation.

Edit: For clarification, I can’t apply the style to ‘compv-navbar’ because essentially I would like to ‘enclose’ that specific text. I would like to be able to style it as if it were it’s own div, without the div. If I were to style the entire compv-navbar div, it would do all the pipes (|) and I don’t want that. I just want that specific piece of text to be styled.

Thanks.

  • 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:19:34+00:00Added an answer on May 16, 2026 at 1:19 am

    Wrap that text in a <span> instead of a <div>, then apply styles to #compv_navbar span instead. <span> is a generic inline element, so it should not throw off your layout.

    Here’s an illustration, assuming the pipe separators aren’t part of the text you want to target:

    <div id="compv-navbar">
      <a href="#"><img src="image1.png" id="icon1"></a> | 
      <a href="#"><img src="image2.png" id="icon2"></a> | 
      <a href="#"><img src="image3.png" id="icon3"></a> |  
      <span>Text to be styled</span>
    </div>
    

    If you want the separators to be styled the same way, perhaps using <span> wouldn’t fit the description of ‘simple’ anymore (wrapping the separators in the same span tags, or whatever), in which case I’d just go with styling #compv_navbar.

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

Sidebar

Related Questions

<div id=compv-navbar> <a href=#><img src=image1.png id=icon1></a> | <a href=#><img src=image2.png id=icon2></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
The code is as follows: <div id=compv-navbar> <a href=#><img src=image1.png id=icon1></a> | <a href=#><img
Code is as follows: <div id=compare_view align=center> <div id=compv-navbar> <img src=image1.png> | <img src=image2.png>
My div structure should be this: <div id=dashboard> <img id=pic1 src=...png /> <h6>....</h6> </div>
I have a snippet that is like this: <div id=image_input> <img src=missing-image.png name=image_comp />
My div is closing itself. <html><head><title></title> <script type=text/javascript charset=utf-8 src=jquery-1.7.min.js></script> <script> $(document).ready(function(){ $(#wrapper).append( '<div
this div to cover up the viewport works perfect on IE 7, 8, FF,
I have a div which contain lots of input[type=text] fields. I want to put
Chrome's Developer Tool reveals this html generated for my panel: <div id=ext-comp-1027 class= x-panel

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.