Disabling the border CSS fade effect

Struggling with creating a curved line using border-left. The top and bottom of the border are fading, and I can't seem to get rid of it.

The design I'm aiming for

https://i.sstatic.net/3mLBT.png

What I've achieved so far:

https://i.sstatic.net/qDh7q.png

This is my current code:

.border {
    border-left: 2px dashed #c6c6c6;
    border-radius: 10%/200px;
}
<div class="border"></div>

Any suggestions on how to resolve this issue would be greatly appreciated. Thank you!

Answer №1

Until you include the border attributes for bottom, top, and right, it will always appear 'faded'.

.border {
   min-height: 500px;
   min-width: 500px;

   border-left: 2px dashed #c6c6c6;
   border-right: 2px dashed #c6c6c6;
   border-bottom: 2px dashed #c6c6c6;
   border-top: 2px dashed #c6c6c6;

   border-radius: 10%/200px;
}

If only one is specified, the web browser has to decide when to begin and end drawing the left border. With significant curvature, there isn't a clear point to stop, so the border gradually fades out as a compromise :p

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Having difficulty automating the selection of dropdown menu using Selenium in Python

I'm struggling to automate the selection of a specific element on this webpage using Selenium in Python. The elements I'm targeting from the webpage are as follows: https://i.sstatic.net/d4xcH.png Upon inspecting the page element, I found this ...

html interactive/expandable tree

I've come across this code which generates an HTML tree, but I'm facing an issue where the tree expands every time I refresh the page. What I want to achieve is to have certain branches expanded and others collapsed when the page is opened, depe ...

a basic three-tier flexible design with alignment to the lower right side

I am looking to create a dynamic header that adjusts based on the height of the svg logo and available width for the navigation: layout1: https://i.sstatic.net/Oa8gB.png If there is not enough space for all navigation buttons (a) to fit in one row next t ...

Monitor Jenkins live logs with a personalized dashboard for real-time viewing

Our Jenkins CE is currently running close to 4000 jobs, with users accessing a Dashboard that utilizes Jenkins APIs. Previously, we provided an href link with a logs button for viewing logs, which would open the Jenkins logs page in an iFrame when clicked. ...

Is the row border camouflaged by the background?

feed_page: { margin: 'auto' }, feed_list: { margin: 'auto' }, feed_item: { textAlign: 'center', backgroundColor: '#fff', borderBottom: '1px solid #e0e0e0', margin: '10 ...

How should Bootstrap containers, rows, and columns be properly configured?

As a beginner in Bootstrap, I am still trying to grasp the concepts. Understanding how rows, columns, and containers work is clear to me so far. However, I am struggling with the syntax for setting up the div elements. Should my code look something like t ...

CSS lacks hover effects for smooth transitions on mouse over and mouse out

When scrolling down, I've added a transition effect to smoothly change a div element. However, I want to avoid this transition effect when hovering over or moving the mouse out as the div is acting as a button. While I was successful in removing the e ...

How can I extract information from an HTML element using its ID in JavaScript?

Can anyone please help me retrieve the date using JavaScript from the following div: <div id="popupDateFieldMin" class="dateField">2017-08-02</div> Below is the code snippet I am currently using: var cal = document.getElementById( 'popu ...

"Upon clicking, toggle the addition or removal of the overflow hidden

I'm currently working on a function to add and remove the CSS property .css('overflow-y','hidden') using an onclick event, which I have successfully implemented. However, I am encountering an issue when attempting to remove this CS ...

Embed hyperlinks in a haml layout

I created a custom template called "_list_two_lines" %ul{:style=>"padding-top: 0; margin-top: 0"} - content.each do |element| %li{:style=>"font-family: Roboto, sans-serif; color: #333;font-weight: 300; font-size: 14px; "} &#10003; ...

What is the best way to adjust the height of a div based on its child content

I've been experimenting with various methods to extend the white background around the title to cover the rest of the content. I've tried using overflow, clear, min-height, max-height, and even the '*' selector but nothing seems to work ...

The clearfix feature is ineffective when using AngularJS

<ul class="dropdown-menu wm_search_div" ng-show="searchDivShow"> <li ng-repeat="user in searchUserList"> <a href="javascript:void(0);" class="wm_clearfix3"> <img ng-src="{{user.faceIcon}}" class="pull-left wm_se ...

I'm having trouble getting my HTML to scroll properly

Apologies for asking a common question, but I'm facing a specific issue with scrolling that I can't seem to figure out. Below is the code snippet: * { font-family: Arial, Helvetica, sans-serif; text-align: center; font-size: 40px; } < ...

Create a design using CSS that features rounded borders on three sides and one side with a disconnected corner

Could you help me with designing a CSS design that is found in the following link? https://i.sstatic.net/DmiSr.png ...

Attempting to extract information from website, successful on majority of sites but encountering issues on this particular one

We are looking to extract dividend data specifically from the Nasdaq exchange similar to this Google Sheets example. While most other URLs work without any issues, the query for this one seems to be failing. <?php $ch = curl_init(); curl_setopt($ch, C ...

Modification of webpage content when URL hash changes

I am experiencing an issue with my script. Whenever I type something with a spacebar, like google map, it automatically changes in the input box to google+map, which is not ideal. Additionally, when I try to submit again, it further complicates the situati ...

Ways to customize the default CSS styles of angularJS for elements like search box and more

Looking for a way to customize the appearance of an AngularJs search box? <div ng-controller="PersonListCtrl"> <div class="bar">Search: <input ng-model="query"> </div> <ul cl ...

Creating ngModel dynamically with *ngFor in Angular 2: A guide

I've been struggling with this for the past couple of days - how can I have a new ngModel for each iteration within an *ngFor loop? The idea is that I load a list of questions, and within each question there are 2 propositions. Here's the HTML: & ...

Enrolling Participant into Event Name

I am currently working on a calendar based on FC6 and I have been attempting to include the user who created the event in the event title. Here is my info.event: and nomeUtente represents the text I want to add to my event. I experimented with this in my ...

I am having difficulty with my ajax code and I am unsure of how to resolve it

Here is the code snippet. I am encountering an issue where pressing the button does not trigger any action, while I simply want to ensure that the AJAX functionality is working properly. The expected behavior is for an alert message to be displayed when th ...