css

link change color on scrolling

自古美人都是妖i 提交于 2021-02-10 14:43:02
问题 I am trying to find out how a link will change color when a user scroll a page. An example is on this page. On the right are links beneath in this rticle . In my example I would like the titlex to change colors, depending on what the user see/scroll. page.html : <!DOCTYPE html> <html> <head> <title>page</title> <style type="text/css"> <!-- body.container { width: 100%; } .maintext { min-height: 1080px; width: calc(100% - 210px); float: right; background: #FFFCB5; } iframe.side1, iframe.side2

link change color on scrolling

感情迁移 提交于 2021-02-10 14:40:57
问题 I am trying to find out how a link will change color when a user scroll a page. An example is on this page. On the right are links beneath in this rticle . In my example I would like the titlex to change colors, depending on what the user see/scroll. page.html : <!DOCTYPE html> <html> <head> <title>page</title> <style type="text/css"> <!-- body.container { width: 100%; } .maintext { min-height: 1080px; width: calc(100% - 210px); float: right; background: #FFFCB5; } iframe.side1, iframe.side2

The content loaded by ajax does not take the styles of the page

岁酱吖の 提交于 2021-02-10 14:38:59
问题 With ajax I am bringing content to upload my website with information. What the page does is load everything normally first, then execute the corresponding ajax, but when loading the ajax and placing the appropriate information, this information does not apply the styles of the web page. Here is an example of how my code would be: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <!-- Styles that you do not recognize --> <link rel="stylesheet" href="css

How to combine multiple selectors for the same rule [duplicate]

白昼怎懂夜的黑 提交于 2021-02-10 14:36:31
问题 This question already has answers here : What do commas and spaces in multiple classes mean in CSS? (9 answers) Closed 1 year ago . I can't combine these selectors into a single CSS rule. I'm trying to edit the width of certain form fields. input#input_9_2 { max-width: 500px; } input#input_9_3 { max-width: 500px; } When I try to combine them, the rule does not apply to either. But they work when written separately, as above. 回答1: To group CSS selectors in a style sheet, you use commas to

Sticky table headers with firefox / IE

廉价感情. 提交于 2021-02-10 14:31:56
问题 I am using a div with display:table and I am trying to create sticky headers. Chrome supports position:sticky with display:table-row but firefox and IE do not. Therefore, I created a code that changes the div position to "fixed" on scroll and the top to 0. This gets the same result. However, when changing the position to "fixed" the header row stops being a part of the table and therefore it's width is changed. (And is no longer synced with the other table rows) I tried to fix it with saving

Sticky table headers with firefox / IE

烈酒焚心 提交于 2021-02-10 14:30:13
问题 I am using a div with display:table and I am trying to create sticky headers. Chrome supports position:sticky with display:table-row but firefox and IE do not. Therefore, I created a code that changes the div position to "fixed" on scroll and the top to 0. This gets the same result. However, when changing the position to "fixed" the header row stops being a part of the table and therefore it's width is changed. (And is no longer synced with the other table rows) I tried to fix it with saving

all divs with same height in a flexbox with at the bottom

你离开我真会死。 提交于 2021-02-10 14:27:48
问题 I have the following html to build a grid with bootstrap 4. <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <div class="row"> <div class="col-sm-12 col-md-3"> <div class="row"> <div class="col-lg-12"> here are different heights possible </div> </div> <div class="row align-items-end"> <div class="col-lg-12 date"> should always be at

navigation drawer opens by pulling down other web blocks

浪尽此生 提交于 2021-02-10 14:24:53
问题 navigation drawer opens by pulling down other web blocks. when it closes blocks come up. additionally drawer menu has occupied more space of my web sites top space. unable to keep blocks near the navigation bar. A big empty space there. But drawer menu works fine. how to solve this issue? HTML <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My web</title> <link rel="stylesheet" href

Enfocing min width on Kendo Grid (jQuery) when grid has hidden columns

时间秒杀一切 提交于 2021-02-10 14:24:36
问题 I am trying to enforce a min-width rule for resizable columns in the Kendo Grid. I used the sample that they provided here. In their example all of the columns are being displayed. In my case there are some columns which are hidden. I have a sample here using Kendo's Dojo to illustrate my problem. Any column that comes after the hidden column no longer maintains the min-width rule. Best I can figure is that this is an issue with jQuery and it's interactions with elements that have been set to

how to give hover effect to DataList

人盡茶涼 提交于 2021-02-10 14:23:59
问题 <ItemTemplate> <div class="span3"> <div class="row"> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl='<%# Eval("product_img") %>' BorderStyle="Outset" ImageAlign="Top" Width="250px" /> </div> <div class="row" > <b>product_name:</b> <asp:Label ID="product_nameLabel" runat="server" Text='<%# Eval("product_name") %>' /> </div> <div class="row"> <b>product_description:</b> <asp:Label ID="product_descriptionLabel" runat="server" Text='<%# Eval("product_description") %>' /> </div> <div