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...

How can I create an editable dropdownlist in HTML?

How can I create an editable dropdownlist in HTML? I'd like to create a text field with a dropdown list that lets the user choose some predefined values. The user should also be able to type a new val...

16 Jul at 17:33

HTML table with fixed headers and a fixed column?

HTML table with fixed headers and a fixed column? Is there a CSS/JavaScript technique to display a long HTML table such that the column headers stay fixed on-screen and the first coloumn stay fixed an...

10 Dec at 18:8

How can change width of dropdown list?

How can change width of dropdown list? I have a listbox and I want to decrease its width. Here is my code: ``` Kg Gm Pound Metric ton Litre Ounce

How do I make a text input non-editable?

How do I make a text input non-editable? So I have a text input Here is my CSS for it Is there a setting or a trick to this, I was thinking of doing a label inst

29 Apr at 16:39

Center text in table cell

Center text in table cell I can't seem to find the answer to my issue. I have a table with two rows and two columns (like the code shown below), how do I center align the text in specific cells. I wou...

10 Jul at 17:44

How to tell which row number is clicked in a table?

How to tell which row number is clicked in a table? I have a table like the following: When a user clicks on the table, how can I get the index of this row (`tr` element)? For example, when I click on...

How to ensure a <select> form field is submitted when it is disabled?

How to ensure a form field is submitted when it is disabled? I have a `select` form field that I want to mark as "readonly", as in the user cannot modify the value, but the value is still submitted wi...

16 Nov at 15:52

Best Practices & Considerations when writing HTML Emails

Best Practices & Considerations when writing HTML Emails I've been developing websites for over a decade now, but quickly found that many of my habits in developing for the web are useless when develo...

19 May at 17:5

How to override td align="center"?

How to override td align="center"? As gathered from [Why align="center" not overriding on {text-align:right;}](https://stackoverflow.com/questions/2546857/why-aligncenter-not-overriding-on-text-alignr...

9 Jun at 22:3

Change select box option background color

Change select box option background color I have a select box and I'm trying to change the background color of the options when the select box has been clicked and shows all the options. ``` body { b...

Parsing HTML Table in C#

Parsing HTML Table in C# I have an html page which contains a table and i want to parse that table in C# windows form > [http://www.mufap.com.pk/payout-report.php?tab=01](http://www.mufap.com.pk/payou...

HTML image not showing in Gmail

HTML image not showing in Gmail I'm sending an e-mail newsletter in HTML. Inside the HTML I have something like `` When I open the newsletter with Thunderbird or Outlook, the image is being displayed....

16 Jan at 19:7

How to make a <ul> display in a horizontal row

How to make a display in a horizontal row How can I make my list items appear horizontally in a row using CSS? ``` &#8227; Inbox &#8227;

14 May at 23:45

Fixed Table Cell Width

Fixed Table Cell Width A lot of people still use tables to layout controls, data etc. - one example of this is the popular jqGrid. However, there is some magic happening that I cant seem to fathom (it...

10 Dec at 18:21

Form inside a table

Form inside a table I'm including some forms inside a HTML table to add new rows and update current rows. The problem that I'm getting is that when I inspect the forms in my dev tools, I see that the ...

23 Nov at 11:37

What is the &#xA; character?

What is the &#xA; character? What's the meaning of this char?

17 Jan at 19:31

How to deal with page breaks when printing a large HTML table

How to deal with page breaks when printing a large HTML table I have a project which requires printing an HTML table with many rows. My problem is the way the table is printed over multiple page. It w...

22 Jun at 19:37

CSS table td width - fixed, not flexible

CSS table td width - fixed, not flexible I have a table and I want to set a fixed width of 30px on the td's. the problem is that when the text in the td is too long, the td is stretched out wider than...

22 Jan at 22:31

Converting HTML to Excel?

Converting HTML to Excel? How to convert HTML template to Excel file

21 Oct at 09:59

What is the HTML tabindex attribute?

What is the HTML tabindex attribute? What is the `tabindex` attribute used for in HTML?

22 Jun at 12:15

HTML SELECT - Change selected option by VALUE using JavaScript

HTML SELECT - Change selected option by VALUE using JavaScript There can be many options in a SELECT dropdown. I'm creating a page where a user's profile is retrieved from the database and a form is s...

2 Dec at 09:53

How do I create an HTML table with a fixed/frozen left column and a scrollable body?

How do I create an HTML table with a fixed/frozen left column and a scrollable body? I need a simple solution. I know it's similar to some other questions, like: - [HTML table with fixed headers and a...

29 Oct at 06:49

Extracting Inner text from HTML BODY node with Html Agility Pack

Extracting Inner text from HTML BODY node with Html Agility Pack Need a bit of help with HTML Agility Pack! Basically I want to grab withing the body node of the HTML. So far I have tried this in vb.n...

27 Jul at 22:49

How to draw a dotted line with css?

How to draw a dotted line with css? How can I draw a dotted line with CSS?

1 Sep at 13:16

Get checkbox value in jQuery

Get checkbox value in jQuery How can I get a checkbox's value in jQuery?

1 Nov at 17:50