tagged [html]

HTML CSS LI Wrapping

HTML CSS LI Wrapping I have a vertical menu in my system which is basically made of HTML `ul`/`li` with CSS styling (see image below). However I don't want the `li` items which are wider than the menu...

7 Jul at 14:2

Setting table column width

Setting table column width I've got a simple table that is used for an inbox as follows: How do I set the width so the From and Date are 15% of the page width and the Subject is 70%. I also want the t...

13 Mar at 12:8

Make ABC Ordered List Items Have Bold Style

Make ABC Ordered List Items Have Bold Style I have an html Ordered list with type set to "A" Thus, each list item will start with A, B, C, etc. I would like to style the A, B, C letters to be bold. I ...

1 Mar at 19:21

Setting the selected attribute on a select list using jQuery

Setting the selected attribute on a select list using jQuery I have the following HTML: I have the string "B" so I want to set the `selected` attribute on it so it will be: ``` A B C

8 Aug at 13:53

C# html agility pack get elements by class name

C# html agility pack get elements by class name I'm trying to get all the divs that their class contains a certain word: I need to get all the divs that their class contains the word "hello". Somethin...

19 Apr at 07:40

Changing CSS for last <li>

Changing CSS for last I am wondering if there is some way to change a CSS attribute for the last `li` in a list using CSS. I have looked into using `:last-child`, but this seems really buggy and I can...

17 May at 14:11

How do I set an un-selectable default description in a select (drop-down) menu in HTML?

How do I set an un-selectable default description in a select (drop-down) menu in HTML? I have a drop down where the user selects a language: 1. I want the default option that is initially displayed t...

12 Jan at 04:38

HtmlAgilityPack set node InnerText

HtmlAgilityPack set node InnerText I want to replace inner text of HTML tags with another text. I am using HtmlAgilityPack I use this code to extract all texts But InnerT

Creating a select box with a search option

Creating a select box with a search option I am trying to replicate what you can see here in this image. ![enter image description here](https://i.stack.imgur.com/9NB1w.png) I want to be able to eithe...

15 Oct at 10:44

How to use jQuery to select a dropdown option?

How to use jQuery to select a dropdown option? I was wondering if it’s possible to get jQuery to select an ``, say the 4th item, in a dropdown box? I want the user to click a link, then have the `` bo...

Equal sized table cells to fill the entire width of the containing table

Equal sized table cells to fill the entire width of the containing table Is there a way using HTML/CSS (with relative sizing) to make a row of cells stretch the entire width of the table within which ...

2 May at 10:36

PHP: HTML: send HTML select option attribute in POST

PHP: HTML: send HTML select option attribute in POST I want to send the selected item value along with some attribute (stud_name) value. Is there any functionality in PHP to do so? Here is the example...

20 Jan at 11:4

Splitting a table cell into two columns in HTML

Splitting a table cell into two columns in HTML I have the following table: And I wish to split the cell which contains "" into two cell

16 Nov at 16:16

Styling the last td in a table with css

Styling the last td in a table with css I want to style the last TD in a table without using a CSS class on the particular TD. I want the TD containing the text "Five" to not have a border

15 Sep at 15:25

How can I show and hide elements based on selected option with jQuery?

How can I show and hide elements based on selected option with jQuery? Here is my code. Why it doesn't work? ``` $('#colorselector').change(function() { $('.colors').hide(); $('#' + $(this)....

12 Jan at 17:29

How to get all selected values of a multiple select box?

How to get all selected values of a multiple select box? I have a `` element with the `multiple` attribute. How can I get this element's selected values using JavaScript? Here's what I'm trying: ``` f...

31 Aug at 13:30

how do I get the bullet points of a <ul> to center with the text?

how do I get the bullet points of a to center with the text? When I try to center a `` the text in the `` centers but the bullet points stay on the far left of the page. Is there any way to get the bu...

11 Mar at 23:54

Converting HTML entities to Unicode Characters in C#

Converting HTML entities to Unicode Characters in C# I found similar questions and answers for Python and Javascript, but not for C# or any other WinRT compatible language. The reason I think I need i...

How to insert a row in an HTML table body in JavaScript

How to insert a row in an HTML table body in JavaScript I have an HTML table with a header and a footer: I am try

19 Nov at 12:54

How can I embed SVG into HTML in an email, so that it's visible in most/all email browsers?

How can I embed SVG into HTML in an email, so that it's visible in most/all email browsers? I want to generate graphs in SVG, and email an HTML page with those graphs embedded in it (not stored on a s...

10 Jun at 17:19

C# - Best Approach to Parsing Webpage?

C# - Best Approach to Parsing Webpage? I've saved an entire webpage's html to a string, and now from the links, preferably with the ability to save them to different strings later. What's the best way...

3 Jan at 06:52

How do I redirect a user when a button is clicked?

How do I redirect a user when a button is clicked? I have a view with a button. When the user clicks the button I want them redirected to a data entry view. How do I accomplish this? I should mention ...

How to get all input elements in a form with HtmlAgilityPack without getting a null reference error

How to get all input elements in a form with HtmlAgilityPack without getting a null reference error Example HTML: Test code: ``` HtmlDoc

12 Feb at 16:0

What is the HtmlSpecialChars equivalent in JavaScript?

What is the HtmlSpecialChars equivalent in JavaScript? Apparently, this is harder to find than I thought it would be. And it even is so simple... Is there a function equivalent to PHP's [htmlspecialch...

15 Jun at 21:51

HTML Agility Pack

HTML Agility Pack I'm trying to use HTML Agility Pack to get the description text from inside the: And someone on Stackoverflow a little while ago suggested I use HTMLAgilityPack. But I don't know how...