536 1
how to maintain aspect ratio using CSS?

Hello, I want to maintain an aspect ratio of a div using CSS, I know we can do it with javascript also, but I would like to maintain aspect ratio using CSS only.

Is there any way to change height according to width, maintaining the aspect ratio using any CSS rule or property?

...

Type
Question
CSS CSS3 html responsive-design
388 1
How to create bootstrap dropdown with hover animation?

I would like to create a bootstrap dropdown with hover animation, how can I create it?

My Current HTML code is as below, which is a basic drop-down menu created using Bootstrap.

HTML

...
Type
Question
Bootstrap dropdown with hover CSS jQuery
328 1
How to make bootstrap dropdown appear on hover instead of click?

I have a bootstrap dropdown on my website, it opens when a user clicks on it like this https://jsfiddle.net/od3n/8T6Vm/, now I need to show dropdown options on hover instead of click, how can I do it?

Thanks

...
Type
Question
CSS Bootstrap show dropdown list on hover
325 2
Search form's select dropdown does not work on Apple phones

I have a search form consisting of 5 html selects, on a site which is running Bootstrap 4.1. This does not work on Apple phones, because when the visitor touches the select, the dropdown of options does not appear. This works fine on computers and android devices. Does anyone have a work around?

...
Type
Question
HTML Search-form Dropdown-list
258 1
How to force HTML table row to show data in single row using CSS?

How can I force HTML table row data (data inside <td>) to show it in single line instead of multiple lines using CSS, for example take a look at the below image

...

Type
Question
HTML CSS row data in one line

227 1
How to apply a CSS to first element of class only?

I have a question, I would like to know, how can I apply a CSS to only first-child of a class, I am aware of :first-child CSS selector, but I am not able to use it.

I want to apply border-top to all the div with class "b" except the first one, here is sample HTML

...
Type
Question
CSS css first of class css select first element

Page 3 of 3