What is the best way to ensure that my oval CSS design is responsive across all

On my card, I have placed an oval that should be responsive on small screens but it is not.

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

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

My goal is to make the oval expand.

This is the CSS code I am using:

    <style scoped>
div.oval {
  position: absolute;
  right: 3.3rem;
  top: 10px;
  width: 130px;
  height: 50px;
  -moz-border-radius: 0 50% / 0 100%;
  -webkit-border-radius: 0 50% / 0 100%;
  border-radius: 150px;
  background: #5cb85c;
  border: 3px solid #555;
}
</style>

I am using Vuetify V-card in my setup:

    <v-container fluid grid-list-md>
    <v-flex xs12 sm4 md4 lg2>
   <v-card>
       <v-card-title><v-icon>ev-station</v-icon><h4>Estacion</h4></v-card-title>
       <v-divider></v-divider>
       <v-list-tile>
           <v-list-tile-content>
               <div class="oval"></div>
           </v-list-tile-content>
       </v-list-tile>
       <v-list-tile>
           <v-list-tile-content></v-list-tile-content>
       </v-list-tile>
   </v-card>
    </v-flex>
</v-container>

Answer №1

Ensure the use of width in percentages while implementing a minimum width to prevent exceeding the set limit

div.oval {
  position: absolute;
  right: 3.3rem;
  top: 10px;
  min-width: 70px;
  width: 20%;
  height: 50px;
  -moz-border-radius: 0 50% / 0 100%;
  -webkit-border-radius: 0 50% / 0 100%;
  border-radius: 150px;
  background: #5cb85c;
  border: 3px solid #555;
}

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

Maintaining hover effects even when elements are not in view

I am facing an issue with my absolutely positioned <div> (which serves as a menu) located in the corner of a webpage. The problem arises when I try to animate it on hover, but as soon as the cursor moves beyond the viewport, the hover action stops. I ...

Scheduling with FullCalendar: Embracing the Unique Parallelogram Events

Is there a way to change the shape of the event from a square to a parallelogram? Here is an example in the image below: https://i.sstatic.net/hKtz7.png I attempted to modify the CSS with the code snippet below: .fc-event-container{ background-colo ...

Selecting the dropdown option reveals a blank white box on the screen

I have encountered an issue with my navigation bar code. Specifically, when I click on the Users dropdown in the top navigation bar, I am not able to see any items in the sub-menu: <nav> <ul> <li><img style="marg ...

Adjacent column navigation in Bootstrap 4 is a great way to

Below is the code snippet: <nav class="navbar navbar-expand-lg navbar-light bg-light" role="navigation" id="navbar"> <div class="container"> <a class="navbar-brand mynav" href="{% url 'home' %}">Star Social< ...

When CSS and HTML are the only tools used, the content tends to jump upon loading

I have a unique internal ticketing system that has restrictions on using JavaScript and limited CSS tags. Due to this limitation, I needed to explore different methods of creating a simple CSS slider for images using only HTML and CSS. However, I encounte ...

What is the best way to end a CSS image slideshow on its final image?

My slideshow consists of 3 images, each with different texts. I'm trying to figure out how to stop the autoplay feature when the last image is displayed, so it doesn't fade out and disappear. Below is the code snippet: HTML section: <div cla ...

Adjust the height of the element to match the parent's height

I am working on a design with a structure like this: <section> <h3>Title:</h3> <p>Content that may span multiple lines.</p> </section> section { background: #5E5E5E; overflow:hidden; } h3 { backgro ...

Switch Image on Hover in Panel Group

After delving into Bootstrap, I encountered an issue. I have a Panel-Group with an image and some text. The challenge is switching the image on hover, but it should change when hovering over the panel, not just the image itself. I've found solutio ...

Struggling to implement Bootstrap in my code

Struggling to apply Bootstrap styling to my webpage, I've correctly linked it using <link href="css/bootstrap.min.css" rel="stylesheet"> as per the official documentation. However, despite having both files in the same folder, Bootstrap styles ...

Iterate over the stepper headers and insert separators between each item, but exclude the final item

Utilizing the stepper component, I have implemented a dynamic approach by looping through an array of objects instead of hardcoding the headers and content. The stepper items are functioning perfectly with: <v-stepper-items> <v-stepper-content ...

Problem with CSS3 Target Selector

As I delve into the world of JS/HTML5/CSS3, I have been immersing myself in code examples from three different authors and combining and modifying them to enhance my learning. You can find my work-in-progress Pen, with references to the original authors, r ...

Mobile device not providing proper CSS padding and border-radius styling

I'm currently facing an issue with my email contact form. The submit button is styled perfectly on desktop, but on mobile, the padding and border-radius are not being applied. I attempted to switch to EM units from pixels, but still no luck. You can v ...

Is it possible to exclusively focus on the specified data attributes?

Is there a method to specifically target the 'data-season' attribute with the value "winter"? This is my HTML: <li data-season="summer">summer <ul class="groups"> <li data-item="beach">beach</li> <li data-item ...

I'm having trouble getting my dropdown content to align properly with my centered search bar. Any suggestions on how to fix this issue?

How can I align the dropdown content to the center in its td element? I haven't included all of my code here, so feel free to ask if you need more information. The search bar is supposed to be at the center of this table navbar. This is the HTML: &l ...

Using both position: absolute and position: relative simultaneously does not yield the desired results

Can someone help me figure out why my announcement is showing up in the wrong place on different browsers? Here's the code: This is my HTML code: and this is my CSS code: .announce { height: 45px; width: 100%; position: relative; } ...

The z-index of the fixed header in FullPageJS is causing the section's content to be hidden

For my current project, I am incorporating FullPageJS and using a fixed top menu that adjusts its height based on the viewport size. On smaller screens, the menu items will be stacked on top of each other, while on wider screens, the menu items will be po ...

Adjusting the appearance of dropdown option borders in HTML/CSS - customize or eliminate borders as

select { width: 300px; font-family: inherit; font-size: 18px; padding-top: 10px; padding-bottom: 10px; padding-right: 30px; display:block; color: #999; border: none; border-bottom: 1px solid #757575; } *:focus { outline: #757575; } ...

Display the corresponding image using jQuery when clicked

I am currently transitioning a website from flash to HTML, CSS, and jQuery. Here is the link: On this site, when you click on an image, a related image appears in the header. I can achieve this using jQuery, but the code is becoming lengthy. I'm att ...

The presence of a border in CSS creates additional room around the content

My issue is that when I apply a border to a div, the content inside no longer fills up 100% of the width and height. I have already tried adding padding: 0;, margin: 0;, and box-sizing: border-box;, but the background still shows at certain zoom levels. ...

`The opacity of parent elements does not apply to their child elements`

I have been searching extensively and cannot seem to pinpoint the problem. I am trying to adjust the opacity of the parent element, but for some reason, the child elements are not reflecting this change. My attempts at finding guidance through online sear ...