css3

Aligning the Jquery mobile header title

我怕爱的太早我们不能终老 提交于 2019-12-30 09:17:06
问题 Just wondering if anyone knew how to override the default behavior in Jquery mobile to align the Header title to the left and keep the same format. I can't seem to get it to line up. Here's what I have: <div class="ui-body-x" data-role="header" data-position="fixed"> <div class="ui-grid-x"> <h1 class="ui-link">Add New Record</h1> <div data-type="horizontal" style="top:5px;position:absolute;float:right;z-index:10;display:inline;" align="right" class="ui-btn-right"> <a href="www.google.com"

Break letters of second child div

瘦欲@ 提交于 2019-12-30 08:53:39
问题 I have one requirement, where I need to apply width to the parent element which is equal to the first child element's width. This can be easily achieved using display: inline-block or float: left to the parent element if it has only one child element. But I have more than two child elements in a div. Something like this: Fiddle <div class="main"> <div class="first">first</div> <div class="value">valuevalue</div> </div> Right now, If I apply display: inline-block to the parent element, then it

Break letters of second child div

a 夏天 提交于 2019-12-30 08:52:07
问题 I have one requirement, where I need to apply width to the parent element which is equal to the first child element's width. This can be easily achieved using display: inline-block or float: left to the parent element if it has only one child element. But I have more than two child elements in a div. Something like this: Fiddle <div class="main"> <div class="first">first</div> <div class="value">valuevalue</div> </div> Right now, If I apply display: inline-block to the parent element, then it

HTML.Checkboxfor to Toggle button HTML?

人走茶凉 提交于 2019-12-30 08:37:21
问题 Is there anyway to convert the @HTML.Checkboxfor into toggle html button? I have refer the toggle button style from https://www.w3schools.com/howto/howto_css_switch.asp Currently its working by using : @Html.CheckBoxFor(model => model.IsEnabled, new { @checked = "checked", @Name = "DelegateChkBox" }) Changed to: <td class="slider-td"> <label class="switch"> <input name="DelegateChkBox" id="IsEnabled" type="checkbox" value="true" data-val-required="The IsEnabled field is required." data-val=

Wobbly CSS Animation with Border-Radius in Internet Explorer

只愿长相守 提交于 2019-12-30 08:07:48
问题 In Internet Explorer this animation appears to wobble. I was reading the answer to this question and they made it sound as though it is possible to fix. I cannot really use an image as the border radius is not constant, and I would prefer not to use an animated gif. I understand 'wobble' is not a very good description but I can't think of any other words to describe it. I have not tested it with Opera/Safari, so if you have either of them I would like to know if they display correctly or also

Shadow inside of a div

a 夏天 提交于 2019-12-30 08:03:24
问题 Is it possible to display a shadow inside a div box without using pictures? Instead I want to use css commands. So is there some command like: -webkit-box-shadow: 1px inset; ? 回答1: in CSS3 theres box-shadow wich can also be inset to do exactly what you need. this is supported by the following browsers: chrome >= 10.0 (>= 4.0 with -webkit -prefix) firefox >= 4.0 (>= 3.5 with -moz -prefix) IE >= 9.0 opera >= 10.5 safari >= 5.1 (>= 5.0 with -webkit -prefix) 回答2: Yup there is a command inset .

CSS Background-Size doesn't work with static color

这一生的挚爱 提交于 2019-12-30 07:59:12
问题 I am very bad in CSS and I need to accomplish something complicated for me. I got a table with data and I have a column where I have something like Qty Assigned / Qty Requested . I calculate the % assigned so 5 assigned of 10 will be 50%. Now, I want to put a background-color on the TD who match the %. So 50% will be half of the TD in let's say red. I have tried to use background-color: red; background-size: <?php echo $BgPct; ?>%; but it doesn't work. Anyone have solutions ? I can use

Android html5 input type=“password” and numeric keyboard

心已入冬 提交于 2019-12-30 07:39:21
问题 I am tasked with styling a web page for Android and iOS, where you are supposed to input your credit card information. I can't get the security code field to open a numerical keyboard in Android. This is the closest that I've come. It works on iOS, but not Android. <input type="password" pattern="[0-9]*"> I am quite limited in what I am allowed to do: No Javascript, only HTML and CSS modifications. Input type must be password Is it possible to get a password input field to open up a numerical

Android html5 input type=“password” and numeric keyboard

随声附和 提交于 2019-12-30 07:39:07
问题 I am tasked with styling a web page for Android and iOS, where you are supposed to input your credit card information. I can't get the security code field to open a numerical keyboard in Android. This is the closest that I've come. It works on iOS, but not Android. <input type="password" pattern="[0-9]*"> I am quite limited in what I am allowed to do: No Javascript, only HTML and CSS modifications. Input type must be password Is it possible to get a password input field to open up a numerical

Chrome cut off Oswald-Light font

橙三吉。 提交于 2019-12-30 07:32:05
问题 I am using Oswald-Light font family it is fine on FF and IE but cut off on Chrome 回答1: Try setting the font-weight property to normal . This recently worked for me. 回答2: I found this answer for your problem: https://code.google.com/p/googlefontdirectory/issues/detail?id=152 回答3: This happens if you install Oswald on your pc/Machine.............Happened to me it drove me nuts for hours. After removing the font everything came back to norma 回答4: From what I learnt, it's partially Chrome font