Questions tagged [css]

CSS, short for Cascading Style Sheets, is a language used to control the presentation of HTML and XHTML documents.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

How should the html `height` and the `body's` `background-image` be handled? [migrated]

I don't know how to better summerize the question, but here's the problem. I set my html's height to 100% as sugested by Kevin Powell and other people's best practices so things like the footer and ...
2
votes
1answer
128 views

Using text-shadow for accessibility

I'm interested in understanding whether there has been any research or confirmed values for using the text-shadow property with the goal of meeting WCAG minimum colour contrast values. In my ...
1
vote
1answer
41 views

How do I know which measurement units to use for which elements in CSS?

My question why would I ever NOT use percentage for sizes? got some good feedback, some good comments and some good answers. They told my why not to always use percentages, and even when certain ...
4
votes
1answer
102 views

Who should manage CSS colour variables in a web project? Design or Front-End?

We're working on a multi-brand project where the site must switch between company branding. To do this we have CSS colour variables in place switching between styles depending on what brand is using ...
0
votes
0answers
59 views

Why would someone use a button as a link and vice versa

I've seen people trying hard to make an <a> tag look like a <button> (by CSS), and people doing vice versa. Why would they do that? IMHO, they encourage clicks on (fake) buttons, and ...
2
votes
3answers
90 views

Styling a hint for relative numerical value

Background: I have a list of elements in a browser which each are a numerical distance away from the same origin point. I want to give a visual hint to quickly give a feeling for how far a list-item ...
0
votes
1answer
79 views

How do I space or size HTML text so that blurriness is mininized? [closed]

The image below are examples of two different methods that the letter,"J" is rendered: When rendering text, letters seem to be, "warped", or offset by a fraction of a pixel. This ...
1
vote
1answer
169 views

Screen resolution stats and responsive design

I'm working on a new website and there's some debate regarding what width should be picked as maximum for the main, fixed-sized, grid (it won't be a 100% width layout). (Should it be 1100px? Should it ...
0
votes
1answer
62 views

Is there a css @media query that can identify a landscape or portrait display? [closed]

I am trying to create a media query to identify if a screen is landscape or portrait so that I can change the CSS styling when a screen is rotated. Is this possible and how would i do it?
1
vote
2answers
67 views

How is this UI called (multiple pages with settings, dots on bottom marks progress, usually after install of app)

On mobile phone when I install some app it shows few pages with basic settings, at the bottom are dots indicating progress, sometimes back/next button. How is this thing called? I want to find and try ...
2
votes
1answer
121 views

How do I design a mobile table with multiple headers?

I have the following table design for PC. How can I make it easier to see that "ddd", "eee", and "fff" are groups of "CCC" in mobile view? 【PC】 【MOBILE】
0
votes
2answers
172 views

Web design practices to minimize browser refresh [closed]

The design of our website is such that whenever we make some changes in CSS & JavaScript files we require the user to clear the browser cache and get the latest version of these files from the ...
2
votes
1answer
428 views

(Accessibility) - Back button placement on the page in SPA

I am working with an SPA with Angular and the designs indicates that there is a back button and it is before the Page level heading usually the H1. For SPA, it is a general practice that we place the ...
1
vote
1answer
43 views

How important is zooming in and out (cmd + , cmd - ) for websites (Desktop view) in terms of accessibility?

I am working on a website at the moment and someone else is in charge of the HTML/CSS side of things. I've noticed it's not possible to zoom in and out with the browser function of cmd and + or -. The ...
15
votes
3answers
3k views

Make Optional Buttons More Clickable

I currently have a UI where I have three optional buttons. By clicking on a button, it will go to another user flow and the button is "completed". Unclicked buttons are considered "...
1
vote
1answer
54 views

When making a website that is font-size responsive, are there any guidelines to what font-sizes authors blow text up to?

It seems an opinion whether or not, as web-developers, we should design websites taking into account the user increasing font-size (e.g. on Chrome: Chrome>Settings>Customise fonts). (Although it ...
-1
votes
1answer
42 views

What design changes will improve visual appearance of the calculator [closed]

This is the HTML code for a very basic calculator. I am at beginner level on bootstrap and definitely beginner level designer. what are some changes i can do to make the visual appearance better. i ...
0
votes
1answer
64 views

CSS effect to indicate link is a video?

I've got a page with thumnbails that link to videos. The thumbnails have a youtube style Play button. But I still only have 20% of folks clicking those. I want to make it clearer & more ...
1
vote
2answers
143 views

How do I convince my boss that too many link colors are bad for accessibility?

I work at a really small company making websites for a specific clientele, an older female audience. My boss, also the lead Art Director, uses lots of different colors for links across an entire ...
1
vote
1answer
101 views

Need opinion on this web design FOR UX/UI/CX - Beginner in designing [closed]

Hi, first of all, sorry if I'm posting in the wrong section. I want to get an opinion about the design of an event management system. I've google on UX example design but most only show for simple ...
1
vote
1answer
35 views

Similar color groups for HTML

I start my adventure as a front end developer and I wonder about the easiest way to choose the color groups used in css for my projects. For example, I have a group of grayscale colors. How large ...
4
votes
2answers
529 views

How to deal with extra spacing with line-height when spacing between elements should be consistent

We want to design our website so that all elements are spaced 24px apart (paragraphs, form groups, header & content, etc.) and "related" elements (label & form field) are spaced 8px apart. We ...
0
votes
1answer
63 views

Spacing out a Headline, body, and CTA button

Is there a standard on what is the better way to space out a Headline, body text, and button link? Using a margin-bottom on the headline and body? Or using a margin-top on the body and CTA button?
31
votes
4answers
8k views

Why rounding odd font sizes to even?

Today I started implementing a design that had some copy text with font size 17px. My fellow web developer told me that we should round that to 18px and more in general that we should not use odd font ...
0
votes
1answer
181 views

Number incrementers and accessibility

How are number incrementing arrows for accessibility? I would think they would be bad for keyboard users, but is there any study to back that up?
0
votes
3answers
158 views

In the holy grail layout of web design why is the navigation menu vertical and not horizontal?

i am a beginner with web design, while studying i came across the "holy grail layout" and i was just wondering why is it that the menu is vertically aligned while most modern websites tend to use a ...
2
votes
1answer
138 views

Custom scrollbars in websites - do they make any sense?

Are custom scrollbars still needed today? The only reason they were needed so far is because they are fugly on Windows. They are always visible and don't autohide and they just look bad. But I've see ...
3
votes
3answers
396 views

Modal button positioning on mobile

I am designing a design system for my company and am currently looking at designing the modals and dialogues for both desktop(tablet too) and mobile. I have placed the primary action to the bottom ...
2
votes
1answer
120 views

Is there any reason not to change the style of web radio buttons and check boxes?

It's still very difficult to change the visual look of HTML radio buttons and checkboxes using CSS. For example, changing the check box's border-color does nothing on major browsers. Is there a UX ...
0
votes
1answer
111 views

What is the best way to start designing this website? [closed]

I am new UI(ReactJS) Developer, I want to develop this webpage from scratch, however, I am not that experienced, hence, confused how to actually start. Should i start with logo or header or sidebar or ...
2
votes
0answers
57 views

Different border-radius in different field. Is it a good practice? [closed]

Using different border-radius for different fields (e.g. textboxes, buttons, cards) to make the curves looks similar. Curves on the large field doesn't look similar to small fields. Expected: What'...
1
vote
2answers
277 views

Is there a standard for indicating a high contrast style? [closed]

I am working on a web app and have developed both a normal stylesheet and a secondary high contrast stylesheet. I am coming unstuck when it comes to allowing a user to switch between styles. Is ...
1
vote
1answer
127 views

Should I use <aside> for off-canvas navigation? [closed]

I want to create an accessible off-canvas navigation and most tutorials say you should put it inside the <aside> element, however, since it is my main navigation which will appear on one line on ...
1
vote
3answers
523 views

Techniques for handling opening a new tab and ensuring web accessibility with WCAG 3.2

WCAG 3.2 indicates that content should be provided in a predictable format and that subsequently when a new tab is opened on a click that the user is made aware of this. I have a webpage with a list ...
0
votes
1answer
62 views

Why can't I type directly into the HTML with FF Dev Tools? [closed]

Hopefully this question isn't too oddly specific. Let me know if it belongs on ProWebmasters instead... I'm making some mock-ups in Photoshop, using screen shots from the site in its present state as ...
0
votes
1answer
265 views

How to improve a scrollable dropdown section issue [closed]

I have an issue where the overflow of a scrollable list on a website is cutting off my dropdown menu. The scrollable list has a height constraint because it is in a modal which has a set height and ...
1
vote
3answers
331 views

Ways to show a div has more content

I'm basically a back end devlopper but I need to create a page displaying data in diiferent tables. Some of the data rows may contain very large content but I chosed to make all rows the same height. ...
0
votes
1answer
89 views

Vice versa colors for on and off hover of buttons [closed]

How should we choose the color for buttons is there a should always be a dark and light colour or two differed colors. What will be the best strategy for choosing colours. And is it should always be ...
1
vote
2answers
355 views

Footer menu same as Menu

The links which are in the menu are replicated in the footer menu. Is placing same menu links in the footer redundant or is it a bad practice in web design or development?
2
votes
1answer
155 views

Cursor usage in different application elements

I am working on an application that is mostly used by desktop users. So I am trying to perfect the use of the cursor css-rules. First of all, I have read and try to follow the practice of having ...
2
votes
2answers
24k views

Double Scroll Bar on Website [closed]

A website I am responsible for: www.livingsalads.co.uk has a double scrollbar on most browsers (chrome anyways). Which is obviously an issue as it looks bad and also browsers sometimes use the ...
5
votes
1answer
591 views

Creating an accessible, animated, and responsive navigation system

I've been struggling for the past couple weeks to design the perfect navigation (menu) system for my personal website which I am designing. First, I need a system that is completely accessible as I ...
3
votes
2answers
218 views

How do i design website mockups when i already have a css framework in mind?

Do I choose the CSS framework first before designing the website mockups? Or is it the opposite. What if I finish designing the mockups, but the css framework isn't a perfect fit ?. Should I first ...
0
votes
1answer
90 views

When prototyping responsive web design, I have to consider how frontend dev. will do it: CSS Grid/Flexbox/Bootstrap?

My question context: I have to design a responsive website, that is now poorly responsive on bootstrap. I would like to start drawing IA of interface elements and how they act on several screen widths ...
0
votes
2answers
56 views

What is the best pattern for opening Mega Nav on touch device when parent Nav items are link to landing pages?

I have a mega menu opening on desktop, on hover over a parent nav strip. The parent nav items are links on click. The same menu is to be used on landscape tablet. Without on hover, click is used to ...
0
votes
1answer
153 views

UI element names and hierarchy for web SaaS B2B application [closed]

I´m building an ReactJS based library of web elements for a SaaS B2B application. I know this is common, but I´m having lots of difficulties choosing right names for my visual hierarchy. What I call ...
2
votes
3answers
1k views

Should entire checklist row be clickable or only checkbox and label?

In a form checklist, should whitespace beyond the label text be clickable? Or only the checkbox and label itself? Demo here. choice choice choice
5
votes
2answers
844 views

File Browser Download

We provide a service to synchronize devices with our server. Every device has a file browser which is accessible through HTTP. Possible actions are: Download, Delete and Rename. Delete and Rename ...
46
votes
8answers
10k views

How to enable users to insert an infinity number

I am designing a web page which give admin users the opportunity to manage the users below them. in one section of this admin page, the admin user is required to fill out how many queries he permits ...
5
votes
2answers
469 views

Science behind spacing

I'm aware that this question will be very vague, but I'll put it out there at the chance that someone will know what I'm talking about. I recently read an article about the science behind spacing and ...

1
2 3 4 5