css

Is Inline Block Not Working Because Margins Are Set? [duplicate]

[亡魂溺海] 提交于 2021-02-17 05:17:45
问题 This question already has answers here : Two divs side by side - Fluid display (8 answers) How to place div side by side (7 answers) Closed 10 months ago . I'm trying to horizontally align two block elements and "display: inline-block" isn't working. I'm wondering if this is because I have unique margins set for each element. I don't understand CSS from a theoretical level. I will be adding a line to connect them visually once they're on the same horizontal line. h2 { padding: 75px; margin

How can I align these elements side by side?

自作多情 提交于 2021-02-17 05:13:37
问题 I'm having difficulties in aligning these elements side by side, anyway this— —is how it looks so far, but I want it look like this: .reviewprofile { background-color: transparent; border: none; margin-top: 5em; } .reviewentry { display: inline-block; font-family: 'Abhaya Libre', Times, Serif; font-size: 0.8em; font-weight: 400; color: #5e5e5e; text-align: left; padding-left: 3.5em; margin: 0; } .commbutton button { float: left; } .starsrev { padding-left: 2.8em; } <div class="commsec"> <div

How can I align these elements side by side?

点点圈 提交于 2021-02-17 05:13:04
问题 I'm having difficulties in aligning these elements side by side, anyway this— —is how it looks so far, but I want it look like this: .reviewprofile { background-color: transparent; border: none; margin-top: 5em; } .reviewentry { display: inline-block; font-family: 'Abhaya Libre', Times, Serif; font-size: 0.8em; font-weight: 400; color: #5e5e5e; text-align: left; padding-left: 3.5em; margin: 0; } .commbutton button { float: left; } .starsrev { padding-left: 2.8em; } <div class="commsec"> <div

Move the cursor for input text to the right

流过昼夜 提交于 2021-02-17 05:09:37
问题 I want the the point at which a user types text into a textfield to be moved to the right without moving the margin of the text field to the right . I want this because the search button lies on top of the text field for styling purposes and currently when a user begins to type text it starts underneath the search button. So I need the default point of the cursor to be moved to the right by a few pixels. Is this possible with CSS? 回答1: I would definately use text-indent: 20px; =) 回答2: Padding

How to get an aliased (retro-style) HTML text effect

五迷三道 提交于 2021-02-17 05:08:09
问题 I am trying to achieve a jagged text effect with HTML and CSS text. I am aware of the webkit-font-smoothing and font-smooth properties, but even with those set to "none" and "never", the text is still smoother than I would like. Are there other css properties, or other methods I can use to force the text to be more jagged / aliased? Only caveat is it needs to be actual HTML text, not images. 回答1: A lot of text-shadow can approximate such effect. The more you add the more you get the bad

What exactly does this CSS selector with a comma match?

╄→гoц情女王★ 提交于 2021-02-17 05:06:58
问题 I have a question about CSS selectors. In my CSS file I have the following code: .table_legenda th, td { text-align: left; vertical-align: top; font-weight: bold; color: #76818a; border-bottom: 1px solid #76818a; border-left: 1px solid #76818a; white-space: nowrap; overflow: hidden; } Exactly what elements does that select? I thought that it should select all the th and td elements inside a table having the class table_legenda . However, when I test it, the style also gets applied to td

What exactly does this CSS selector with a comma match?

放肆的年华 提交于 2021-02-17 05:05:48
问题 I have a question about CSS selectors. In my CSS file I have the following code: .table_legenda th, td { text-align: left; vertical-align: top; font-weight: bold; color: #76818a; border-bottom: 1px solid #76818a; border-left: 1px solid #76818a; white-space: nowrap; overflow: hidden; } Exactly what elements does that select? I thought that it should select all the th and td elements inside a table having the class table_legenda . However, when I test it, the style also gets applied to td

How to keep floated div from moving beneath other floated div when the browser width resizes?

天涯浪子 提交于 2021-02-17 04:58:21
问题 I'm having a problem where a floated div moves beneath another floated div when the browser width resizes. I created an example of this behavior in a jsfiddle (below) in which I use dummy text and a dummy table. If you open the jsfiddle, and resize the width of the display area, you'll see that eventually the right hand div (the table) moves beneath the left hand div (the text). https://jsfiddle.net/p7yr5t4u/23/ .view { float: left; position: relative; height: 100%; } #A { width: 200px; }

How do I display tooltip text for HTML <input> element using CSS style and data-title attribute?

风格不统一 提交于 2021-02-17 04:49:12
问题 I am attempting to display tooltip like text using the data-title attribute for an HTML control. I used the following technique for a element, and it works fine. HTML Element: <span class="spanNewID" data-title="Tooltip Text">816631-20319G14440 </span> CSS Style: span.spanNewID[data-title]:hover:after { opacity: 1; transition: all 0.1s ease 0.5s; visibility: visible; } span.spanNewID[data-title]:after { content: attr(data-title); background-color: lightblue; color: #111; font-size: 12pt; font

How do I display tooltip text for HTML <input> element using CSS style and data-title attribute?

坚强是说给别人听的谎言 提交于 2021-02-17 04:49:12
问题 I am attempting to display tooltip like text using the data-title attribute for an HTML control. I used the following technique for a element, and it works fine. HTML Element: <span class="spanNewID" data-title="Tooltip Text">816631-20319G14440 </span> CSS Style: span.spanNewID[data-title]:hover:after { opacity: 1; transition: all 0.1s ease 0.5s; visibility: visible; } span.spanNewID[data-title]:after { content: attr(data-title); background-color: lightblue; color: #111; font-size: 12pt; font