NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on March 18, 2019, 11:14:16 PM

Title: CSS Question - field width
Post by: rupertvz on March 18, 2019, 11:14:16 PM
Hi Guys,

I have a question regarding CSS,
I have a NWF with a couple of fields (in mobile mode)

For each of these fields I have a CSS class for:
- Entry-Div, - Entry & Prompt

I am trying to get them all to display the same size and style.
When I adjust the height, all of these fields take the same height.
Same with colour, etc.

The problem is with the width.
Example:  A date field has a longer width than a time field, no matter what I set in the CSS file.

Any ideas are welcome ...
Title: Re: CSS Question - field width
Post by: Robert Iliuta on March 19, 2019, 01:57:51 AM
Hallo!

Did you try with min-width property?

Robert
Title: Re: CSS Question - field width
Post by: rupertvz on March 19, 2019, 02:12:49 AM
Thank you Robert,

I just added the property to my Entry & Entry-Div classes.
I also changed the background colour to make sure it applies to the correct fields.

The colour of the fields changed, but the widths are still the same as before.

Interestingly, when I set min-height, it works?
Title: Re: CSS Question - field width
Post by: rupertvz on March 19, 2019, 02:18:28 AM
I've just tried the max-width property, and this works to Reduce all the fields to the same size.

When I try min-width only the "date" field Increases in size, the time fields only "reacts" to the max-width property ... ?

Title: Re: CSS Question - field width
Post by: Bruce on March 22, 2019, 12:09:16 AM
it's impossible to answer specific css questions without and example.