html

How to float elements left or right of a horizontally centered element?

一曲冷凌霜 提交于 2021-02-05 06:10:15
问题 For the pagination I'd like to use a horizontal alignment of elements looking like this: |<first page> | <previous page> | page X of N | <next page> | <last page>| The element page X of N should always stay in the middle of the whole line, even if one of the other elements is missing . E.g. |<first page> | <previous page> | page N of N | The floating elements should always be attached directly to the element in the centre. My approach looks like this (last row of a search results table): <tr

How to float elements left or right of a horizontally centered element?

♀尐吖头ヾ 提交于 2021-02-05 06:05:33
问题 For the pagination I'd like to use a horizontal alignment of elements looking like this: |<first page> | <previous page> | page X of N | <next page> | <last page>| The element page X of N should always stay in the middle of the whole line, even if one of the other elements is missing . E.g. |<first page> | <previous page> | page N of N | The floating elements should always be attached directly to the element in the centre. My approach looks like this (last row of a search results table): <tr

how to style only a part of text in css [duplicate]

有些话、适合烂在心里 提交于 2021-02-05 06:00:26
问题 This question already has answers here : Does anyone know how to add superscripts in the option tag of <select> (5 answers) Closed 7 years ago . I need to add superscript in dropdownlist options. I tried many ways but nothing worked out. So help me to how to style a only a part of option text to make it appear like superscript. please help me,also if you know any other way to add superscript in dropdownlist options. thanks 回答1: There is no way to do this in HTML/CSS/Javascript However for all

Display the list when an item hover

给你一囗甜甜゛ 提交于 2021-02-05 05:57:37
问题 I have this sample: link .show:hover .list-categories { max-height: inherit; opacity: 1; } .list-categories { list-style-type: none; padding: 0px; margin: 0px; max-height: 0px; opacity: 0; overflow: hidden; transition: opacity 300ms ease; } <div class="show">show div</div> <ul class="list-categories"> <li>Bed</li> <li>Bed</li> <li>Bed</li> <li>Bed</li> <li>Bed</li> <li>Bed</li> </ul> this code does not work. I want to display the list when hover on the item ".show" If you put the switch in

Is there a way to apply regex modifiers for HTML5 input's pattern-attribute?

喜夏-厌秋 提交于 2021-02-05 05:56:12
问题 There is this snippet from the HTML specification, but either I do not understand the specification or it does not exactly say anything too informative regarding the regex-modifiers. 回答1: You should check this HTML5 pattern attribute documentation: If an input element has a pattern attribute specified, and the attribute's value, when compiled as a JavaScript regular expression with the global , ignoreCase , and multiline flags disabled (see ECMA262 Edition 5, sections 15.10.7.2 through 15.10

Get the value of hidden field in same html? [duplicate]

走远了吗. 提交于 2021-02-05 05:48:11
问题 This question already has answers here : get value of hidden field (4 answers) Closed 6 years ago . I want to get the value of hidden field in my html. <form> <fieldset> <input id="name" type="hidden" value="vikiiii" name="name"> </fieldset> My name is {What should i write here to print "vikiiii" ???} ...!!! </div> </form> How i can print my name in that same html. How i can achieve this? Thanks in advance. 回答1: Assuming this HTML <form> <fieldset> <input id="name" type="hidden" value=

How to send file to php via jQuery?

天大地大妈咪最大 提交于 2021-02-05 05:47:14
问题 I try send a file via jQuery to a PHP file for processing. <form action="help-uploader.php" method="POST" class="signup" id="upform" enctype="multipart/form-data"> <input type="text" id="title" name="title" tabindex="1" value=""> <input id="file" type='file'" /> <button class="submitbtn" id="submit">submit</button> </form> and jQuery: $(document).ready(function(){ $('#submit').click(function (e) { // custom handling here e.preventDefault(); var ititle = $("#title").val(); var ifile = $("#file

Get the value of hidden field in same html? [duplicate]

拟墨画扇 提交于 2021-02-05 05:46:00
问题 This question already has answers here : get value of hidden field (4 answers) Closed 6 years ago . I want to get the value of hidden field in my html. <form> <fieldset> <input id="name" type="hidden" value="vikiiii" name="name"> </fieldset> My name is {What should i write here to print "vikiiii" ???} ...!!! </div> </form> How i can print my name in that same html. How i can achieve this? Thanks in advance. 回答1: Assuming this HTML <form> <fieldset> <input id="name" type="hidden" value=

Should I use relative or absolute url on my website?

时光怂恿深爱的人放手 提交于 2021-02-05 05:44:07
问题 If I'm not moving my site around, any good reason for why I should use absolute URL's over relative? 回答1: Absolute URL's will work no matter if you move the content from folder to folder, however each language will have a way to reference a BASE URL in one way or another. For example if you have "test/1.html" as a URL on index.html it will redirect to /test/1.html however if you copy that link to /dom/index.html it will redirect to /dom/test/1.html It would be best practice to use the base

Swiper nav buttons outside container

▼魔方 西西 提交于 2021-02-05 05:33:27
问题 I'm trying to display the nav buttons outside the swiper container, because of the container overflow: hidden i had to create a wrap with position: relative and position the buttons absolutely. That worked, the problem is that now the nav buttons control all sliders and i can't figure out a way to solve this. I don't want to initialize multiple sliders with different classes if the slider is the same with different content. JSFiddle var sliderProdutosDestaque = new Swiper('.slider-produtos