Frame your view counter with professional borders and smooth rounded edges
Borders are the unsung heroes of counter design. They create visual separation from your product images, define boundaries, add polish, and—when paired with rounded corners—transform your counter from “functional widget” to “professional design element.” WhoKnew Views™ offers comprehensive border controls for both free and Pro users, with advanced Pro styles that go far beyond basic CSS borders.
This technical guide covers border styles (free and Pro), width and color configuration, rounded corner implementation, padding controls, and the critical relationship between borders, backgrounds, and text positioning.
🔲 Understanding the Border System
WhoKnew Views™ applies borders to one of two elements, depending on your Border Target setting:
| Border Target | CSS Selector | What It Wraps | Best For |
|---|---|---|---|
| Inner Wrapper (Default) | .view-counter-wrapper | Icon + text container | Tight borders around content only |
| Entire Counter | .product-views-counter | Outer container (includes extra spacing) | Borders with more breathing room |
ℹ️ Technical Note: Most users should keep the default Inner Wrapper setting. The Entire Counter option is for advanced positioning scenarios where you need the border to encompass additional positioning elements.
How Borders Relate to Other Settings
- Background Colors: Borders wrap around your background (transparent, solid, or gradient)
- Padding: Border Padding (Width/Height) adds space inside the border, between the border edge and your text/icon
- Rounded Corners: Border Radius curves the corners of the entire bordered container
- Shadows: Drop shadows apply outside the border, creating depth
🎨 Border Styles
The free version of WhoKnew Views™ includes four essential border styles that cover 90% of design needs.
1. None (Default)
CSS Output: border: none;
When to Use:
- Minimalist designs where the counter floats borderless
- When using strong background colors that don’t need extra framing
- Overlaying counters on product images without visual obstruction
2. Solid
CSS Output: border: 2px solid #000000; (width and color configurable)
When to Use:
- 🏆 Most common choice—clean, professional, universally compatible
- High-contrast separation from page background
- Modern, flat design aesthetics
- Corporate, e-commerce, tech brands
Visual Example
1,234 views
3. Dashed
CSS Output: border: 2px dashed #000000;
When to Use:
- Playful, casual, or creative brands
- Clearance sections or sale items (creates “temporary” feel)
- Highlighting counters as “special” or “notice me”
- Differentiating from solid borders used elsewhere on page
Visual Example
1,234 views
4. Dotted
CSS Output: border: 2px dotted #000000;
When to Use:
- Ultra-casual, handcrafted, or artisan brands
- Creating a “scrapbook” or vintage aesthetic
- Lower-key than dashed, more playful than solid
- Craft stores, hobby shops, indie brands
Visual Example
1,234 views
Setting Up Free Border Styles
- Navigate to WhoKnew → WhoKnew Views → Styling tab
- Scroll to the Border & Styling section
- Locate “Border Style” dropdown
- Choose None, Solid, Dashed, or Dotted
- If you chose anything other than “None”, additional fields appear:
- Border Width (px): Thickness of the border line (default:
2) - Border Color: Color picker for border (default:
#000000) - Border Radius (px): Corner rounding (default:
0= sharp corners)
- Border Width (px): Thickness of the border line (default:
- Adjust these fields to your liking
- Click Save Changes
💡 Pro Tip: For solid borders, use 1px width for subtle elegance, 2px for standard visibility, or 3-4px for bold, attention-grabbing frames. Avoid widths above 5px unless intentionally going for a chunky, retro look.
5. Double
CSS Output: border: 3px double #000000;
Technical Requirement: Minimum width of 3px (plugin auto-adjusts if you set lower)
When to Use:
- Traditional, classic, or formal designs
- Creating visual “weight” without solid mass
- Certificates, awards, official-looking elements
- Luxury brands that want refinement over flash
How It Works
CSS double borders render as two parallel lines with a gap between them. The gap width equals the border width divided by 3. Example: 3px double = two 1px lines with a 1px gap.
6. Groove
CSS Output: border: 3px groove #000000;
Visual Effect: Creates a carved-in, 3D groove appearance using light and dark edge rendering
When to Use:
- Adding depth to flat designs
- Vintage or retro aesthetics (90s web revival)
- Subtle 3D effect without custom shadows
7. Ridge
CSS Output: border: 3px ridge #000000;
Visual Effect: Opposite of groove—raised, extruded appearance
When to Use:
- Buttons or interactive-looking elements
- Making counters “pop out” from the page
- Matching UI frameworks that use ridge borders
8. Inset
CSS Output: border: 3px inset #000000;
Visual Effect: Entire element appears pressed inward
When to Use:
- Creating “carved into page” effect
- Dashboard or control panel aesthetics
- Differentiating from standard flat elements
9. Outset
CSS Output: border: 3px outset #000000;
Visual Effect: Entire element appears raised outward, button-like
When to Use:
- Call-to-action emphasis
- Making counters look “clickable” (even if they’re not)
- Skeuomorphic design (mimicking real-world objects)
10. Embossed ⭐
CSS Implementation: Custom box-shadow layers (no standard border)
border: none;
box-shadow: inset 2px 2px 4px rgba(0,0,0,0.4),
inset -2px -2px 4px rgba(255,255,255,0.6),
2px 2px 4px rgba(0,0,0,0.3),
-2px -2px 4px rgba(255,255,255,0.4);
Visual Effect: Raised, 3D embossed appearance—element looks “stamped” out of the page
When to Use:
- 🏆 Premium luxury products
- Creating tactile, “touchable” elements
- Modern interpretations of physical textures
- High-end fashion, jewelry, art
11. Beveled ⭐
CSS Implementation: Custom box-shadow layers
border: none;
box-shadow: inset 3px 3px 5px rgba(255,255,255,0.8),
inset -3px -3px 5px rgba(0,0,0,0.4),
2px 2px 4px rgba(0,0,0,0.3);
Visual Effect: Chamfered edges, like a cut gemstone—stronger 3D effect than embossed
When to Use:
- Jewelry stores, gemstone products
- Creating “polished” or “faceted” appearance
- Maximum 3D depth without full animations
12. Debossed ⭐
CSS Implementation: Custom box-shadow layers
border: none;
box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5),
inset -2px -2px 5px rgba(255,255,255,0.3),
-1px -1px 3px rgba(255,255,255,0.2),
1px 1px 3px rgba(0,0,0,0.3);
Visual Effect: Opposite of embossed—pressed inward, “stamped into” the page
When to Use:
- Minimalist luxury (subtle, refined depth)
- Creating “engraved” appearance
- Monochromatic designs where texture matters more than color
13. Neon Glow Border ⭐⭐
CSS Implementation: Layered box-shadow with customizable glow color
border: none;
box-shadow: 0 0 8px #00ffcc,
0 0 12px rgba(0,255,204,0.5);
Visual Effect: Glowing border that mimics neon lights—futuristic, cyberpunk aesthetic
When to Use:
- 🔥 Tech products, gaming, electronics
- Creating urgency (glowing = “hot item”)
- Dark-themed stores (glow pops against dark backgrounds)
- Modern, edgy, youth-oriented brands
Customization: Set “Neon Glow Color” field to customize the glow (default: cyan #00ffcc)
14. Neon Glow Text ⭐⭐
CSS Implementation: Text-level text-shadow glow (no border on container)
border: none; /* on container */
.view-counter-text {
text-shadow: 0 0 8px #00ffcc,
0 0 12px rgba(0,255,204,0.8),
0 0 16px rgba(0,255,204,0.6);
}
Visual Effect: Text itself glows (not the container border)—more dramatic than Neon Glow Border
When to Use:
- Maximum attention-grabbing effect
- Sale countdowns, limited offers
- Gaming/esports stores
- Transparent backgrounds where you want text to “pop”
15. Etched
CSS Implementation: Subtle inset shadows
border: none;
box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3),
inset -1px -1px 2px rgba(255,255,255,0.4);
Visual Effect: Faint, carved-in appearance—most subtle Pro style
When to Use:
- Elegant, understated luxury
- When you want texture without boldness
- Monochromatic color schemes
- Professional services, consulting
⚠️ Pro Style Performance: Embossed, Beveled, Debossed, and Etched styles use multiple layered box-shadow values. On very old mobile devices (5+ years), these may render slightly slower than simple solid borders. Modern devices handle them effortlessly.
🎨 Border Configuration
Border Width
Setting: border_width (pixels, integer)
Default: 2 px
Range: 1 to 10+ px (no hard limit)
| Width | Visual Effect | Best For |
|---|---|---|
| 1px | Hairline, subtle separation | Minimalist, elegant, luxury brands |
| 2px (Default) | Standard, balanced visibility | 90% of use cases—universal sweet spot |
| 3px | Bold, noticeable frame | High-contrast designs, call-to-action |
| 4-5px | Chunky, retro, graphic | Sale items, clearance, youth brands |
| 6px+ | Ultra-bold, intentionally thick | ⚠️ Use sparingly—risks looking amateurish |
ℹ️ Special Case: Double Border Width: If you choose Border Style: Double, the plugin automatically enforces a minimum width of 3px. If you set 1px or 2px, it will be adjusted to 3px because double borders require at least 3px to render properly (two 1px lines + 1px gap).
Border Color
Setting: border_color (hex color code)
Default: #000000 (black)
Format: 6-digit hex (#RRGGBB) or 8-digit with alpha (#RRGGBBAA)
Strategic Color Choices
| Strategy | Color Choice | Effect |
|---|---|---|
| Match Text Color | Same as text color | Cohesive, unified look |
| Match Background | Darker/lighter version of background | Subtle, tone-on-tone elegance |
| Brand Color | Your primary brand color | Reinforces brand identity |
| High Contrast | Opposite of page background | Maximum separation, “framed” look |
| Accent Pop | Bright accent (red, blue, gold) | Draws eye, creates focal point |
Universal Safe Colors
- Black:
#000000— works with everything, timeless - White:
#FFFFFF— for dark backgrounds - Charcoal:
#333333— softer than pure black - Light Gray:
#CCCCCC— subtle on white backgrounds - Medium Gray:
#808080— neutral, professional
Border Target
Setting: border_target
Default: .view-counter-wrapper (Inner Wrapper)
Options:
.view-counter-wrapper— Tight border around icon + text.product-views-counter— Looser border around entire counter container
When to Change: 99% of users should keep the default. Change to .product-views-counter only if using advanced absolute positioning where the inner wrapper is positioned independently of the outer container.
⭕ Rounded Corners (Border Radius)
Border Radius curves the corners of your bordered container, transforming sharp 90° angles into smooth, modern curves. This applies regardless of whether you have a visible border—even borderless counters with backgrounds can have rounded corners.
How Border Radius Works
Setting: border_radius (pixels, integer)
Default: 0 (sharp corners)
Range: 0 to 50+ px
CSS Output: border-radius: 8px;
Higher values = more curved corners. At extreme values (e.g., 999px), rectangular containers become pill-shaped ovals.
Border Radius Scale
| Radius | Visual Effect | Best For | Example |
|---|---|---|---|
| 0px | Sharp corners (default) | Brutalist, grid-based, technical designs | Text |
| 2-4px | Subtle softening | Professional, conservative, corporate | Text |
| 6-8px | Noticeably rounded | 🏆 Modern standard—most common choice | Text |
| 12-16px | Soft, friendly curves | Approachable brands, youth-oriented, playful | Text |
| 20px+ | Pill-shaped (if tall) | Badges, tags, “chip” UI elements | Text |
| 50px / 999px | Full pill / circular (if square) | Circular badges, pill buttons | Text |
Setup Instructions
- Go to WhoKnew → WhoKnew Views → Styling tab
- Scroll to Border & Styling section
- Find “Border Radius (px)” field
- Enter your desired pixel value (e.g.,
8) - Click Save Changes
💡 Pro Tip: Border radius works beautifully with gradient backgrounds. Try border-radius: 12px with a bold gradient and 2px solid border for a modern, premium “card” aesthetic.
Border Radius Without Visible Borders
You can use border radius even with Border Style: None. This curves the background color/gradient without adding a border line.
Common Use Case: Solid background + rounded corners + no border = modern “chip” or “badge” look
📏 Border Padding (Width & Height)
Border Padding controls the space inside the bordered container, between the border edge and your icon/text. This is separate from the global Padding & Spacing setting.
Border Padding Width
Setting: border_padding_width (pixels, integer)
Default: 7 px
Controls: Left and right internal spacing
Border Padding Height
Setting: border_padding_height (pixels, integer)
Default: 3 px
Controls: Top and bottom internal spacing
Special Feature: Accepts negative values (e.g., -2) to reduce spacing or “hug” the text
Visual Comparison
| Width / Height | Effect | Best For |
|---|---|---|
| 5 / 2 | Tight, compact | Dense layouts, mobile optimization |
| 7 / 3 (Default) | Balanced, comfortable | Universal—works for most scenarios |
| 10 / 5 | Spacious, airy | Luxury, minimalist, lots of white space |
| 15 / 8 | Extra roomy | Large text, big icons, “billboard” style |
| 7 / -2 | Negative height = reduced vertical space | Counters with tall icons or uppercase text |
⚠️ Negative Height Warning: Negative Border Padding Height values can cause text to overlap with borders if set too low (e.g., -10px). Use negative values cautiously, typically -3 to 0 range.
🔧 Troubleshooting Border Issues
Border Isn’t Showing
Checklist:
- Border Style = None? Change to Solid, Dashed, or Dotted
- Border Width = 0? Set to at least
1px - Border Color = Page Background? If both are white, border is invisible—choose contrasting color
- Border Color = transparent? Change to actual color hex code
- Zero Padding? If both Border Padding Width and Height are
0, and you have no background color, the bordered container might be collapsed to nothing - Browser Cache? Clear cache, hard refresh (Ctrl+Shift+R / Cmd+Shift+R)
Border Looks Broken / Incomplete
Possible Causes:
- Overflow Hidden: Your theme’s CSS might have
overflow: hidden;cutting off borders—check Custom CSS for conflicts - Negative Margins: If you’re using Custom CSS with negative margins, borders can be clipped
- Z-Index Issues: Other elements might be layered on top of your counter, obscuring the border
Pro Border Styles Not Available (Grayed Out)
Cause: You’re using the Free version, not Pro
Solution: Upgrade to WhoKnew Views™ Pro ($79/year) to unlock Double, Groove, Ridge, Inset, Outset, Embossed, Beveled, Debossed, Neon Glow Border, Neon Glow Text, and Etched styles
Rounded Corners Not Showing
Checklist:
- Border Radius = 0? Increase to at least
4px to see visible rounding - No Background or Border? Rounded corners are invisible unless there’s something to see—add a border or background color
- Browser Support: All modern browsers support
border-radius, but IE8 and below don’t—verify your browser version - Overflow Hidden Conflict: Parent container with sharp corners might be clipping your rounded container
Border Padding Not Working
If text isn’t moving when you change Border Padding Width/Height:
- Check Border Target: Padding applies to the element specified in Border Target—verify it’s set correctly
- Pro Styles Override: Some Pro border styles (Embossed, Beveled, etc.) apply padding directly in their
box-shadowCSS—Border Padding settings still work but may appear differently - Custom CSS Override: Your Custom CSS might be forcing padding with
!importantflag
Neon Glow Color Not Changing (Pro)
Diagnosis:
- Verify you’ve selected Border Style: Neon Glow Border or Neon Glow Text
- Check the “Neon Glow Color” field is visible and set (it appears only when Neon Glow styles are active)
- Default fallback is
#00ffcc(cyan)—if your page background is cyan, the glow is invisible - Clear cache and test on actual product page (preview sometimes caches styles)
🎯 Next Steps
You’ve mastered borders and rounded corners! Continue your styling journey:
- 📏 Padding & Spacing: Control internal counter spacing and external positioning margins
- 🎨 Background Colors: Pair borders with solid, gradient, or transparent backgrounds
- 💫 Hover Effects: Animate borders on mouseover (change color, width, or glow intensity)
- ✨ Animation Options: Add pulsing, glowing, or transforming border animations
- 🌓 Shadow Effects: Layer drop shadows outside your borders for extra depth
- 🧩 Custom CSS: Create complex multi-border effects or gradient borders
🎨 Final Thought: Borders aren’t just decoration—they’re visual anchors that define boundaries, create hierarchy, and signal importance. Solid borders say “professional.” Dashed borders say “playful.” Neon glows say “urgent.” Choose intentionally, pair with appropriate corner rounding, and always ensure your border complements (not competes with) your text and background.