Questions tagged [markup]

4

votes
3

answer
27

Views

Can I style numbering an ordered list that has a start attribute value?

Here's the problem: I have an ol li ordered list with a start attribute like so: .custom { margin: 0; padding: 0; list-style-type: none; } .custom li { counter-increment: step-counter; margin-bottom: 10px; } .custom li::before { content: counter(step-counter); margin-right: 5px; font-siz...
marvindanig
0

votes
0

answer
3

Views

How to print markup code in RStudio to pdf

I created a table in RStudio using qwraps2 markup code. Is there a way to print this table in basic table format directly to PDF to be used for powerpoint/email/elsewhere? I am not interested in using it for html, website, php, etc. Only to use as email-able table.
ClareFG
1

votes
1

answer
232

Views

Wrapping semantic elements with non-semantic elements

I am wondering if can I wrap semantic elements with non-semantic elements for layout purposes. Do screen-readers etc. get only directly childs (like > CSS selector) or can I wrap as much as I want? Examples div wrapping header Page title [...] Another div's wrapping header Page title
odie2
1

votes
1

answer
78

Views

How do I structure my HTML semantically correct for screen readers when the visual order of elements is different?

I’m trying to make a search result list more accessible. Lets say I have a list of search results that are structured in the following way: Name of the author Name of the book Sharing … Publishing house (Year) Part of: name of the series The name of the book is a link to another page, while the...
Erik
1

votes
2

answer
1.9k

Views

What HTML5 markup for grouping headings in a table?

I have a table where the data rows are grouped into categories. Currently I've styled them like this: Currently those two group headers ('Baseline' and 'Performer') are simply an extra with a col-spanning . This makes me feel dirty. I want to get rid of that at the very top, and incorporate the he...
Erics
1

votes
1

answer
27

Views

What's the HTML semantic structure of multiple titles with each single related list?

I have a directional section on which it describes the address, phone #, email, and service date/time. I would like to have it look like below ex: My code currently looks like this: address: 123 Beach rd. Brakersville IL, 60054 phone: (555)555-5555 email: [email protected] service: Friday...
Abraham Ban
1

votes
1

answer
83

Views

Xaml- Escape '@' in binding path

My binding is like this: The @enum is inner property and the @ is part of it's name. The error I get is Unexpected token how can I escape the @?
Yitzchak
1

votes
1

answer
271

Views

Extending Bootstrap with Webpack

I'm working on a web application which currently uses bootstrap for its front end, and webpack to bundle its assets. I've been inspired by this article to create web components which can be broken into tiny little self contained units, and this article to attempt to make my use of bootstrap more sem...
thejonwithnoh
1

votes
2

answer
255

Views

Collapsable HTML5 <detail><summary> works in FF and Chrome, but not in IE and Edge

The standard collapsable HTML5 semantic markup and work finally flawlessly in FireFox and Chrome, but not in IE and Edge. Any ideas how to fix this with (a tiny bit of light code) for IE and Edge? jQuery 3.x is already loaded in my site so if the fix involves using something from that library to s...
Sam
1

votes
1

answer
319

Views

How does one use the UWP MarkupExtension class?

Fall Creators update SDK added a Markup Extension class, great. https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.markup.markupextension So I create one and override and 'ProvideValue' method. public class MDL2 : MarkupExtension { ... public string Target { get; set; } protected override obje...
Johnny Westlake
1

votes
1

answer
256

Views

Semantic Validity of a Checkbox in a Fieldset Legend?

If I have a checkbox that toggles the activation/deactivation of a group of checkboxes, is it semantically valid to put it in the legend of the fieldset? Sports Baseball Football Ulama This is getting into the nitty-gritty of what HTML is 'meant' to do, but I can't come up with a satisfying answer:...
TripleD
1

votes
2

answer
47

Views

Semantic HTML markup for links to sections of current page in headers

I've written markup for a header with links to different pages and also sections of the current pages and I wanted to know the following: Are the tag names I used semantically appropriate? Is the structure/hierarchy correct? Does my markup need to be optimized/changed for easy CSS styling? Home Sett...
S. Goody
1

votes
2

answer
27

Views

Should I specify h2-h6 sub-headings for a details tag to make the details a distinct section?

I have several tags that serve as the sections of my page. My understanding is that the tag serves as the heading for , so I did not add any headings within or before the . However, to ensure that these are indeed separate sections, I am not sure if the details requires sub-headings. My current...
JAT86
1

votes
1

answer
226

Views

Create rect with blurred stroke in svg using d3.js

How could I create a rect with blurred stroke in svg using d3.js? Or at least an ordinary svg markup. I was not able to find such an example or a solution to the problem. If you will tell me that it is a duplicate and provide a similar question I will gladly delete this one. But I am pretty sure tha...
1

votes
2

answer
42

Views

How do I override the numbering for one specific li in an ordered list

I'm transcribing legal documents that come with ordered lists, but there's a catch. Law-makers are lazy and when adding a new clause between clauses 2, and 3, they name it 2A. As an example, here's some original text: 6 High treason (1) Any person who abrogates or subverts or suspends or holds in ab...
Upvote Me
1

votes
1

answer
68

Views

What are the benefits of using HTML description lists (dl, dt, dd)?

MDN explains the , and tags can be used to implement a glossary or a list of key-value pairs. According to maxdesign.com.au (article posted in 2004, its statings may be inaccurate) there are even downsides in using them: The within definition lists cannot contain block level elements; Search engi...
Propaganistas
1

votes
2

answer
715

Views

What Html markup for a focusable TD?

I want to practive, and even best-practice, with Html+JS+CSS. I use a one page client-only Sudoku page. My Sudoku markup is basically a , with . (I'm open to suggestions to improve this). My requirements : Have a cell under focus (the keyboard notion of focus) (highlighed with css to a yellow backgr...
KLE
1

votes
6

answer
2.1k

Views

Regular Expression for Conditional Substitution of Angle Brackets

Is it possible to create a single regexp to replace < and > with their entity equivalents in Komodo Edit? s//<|>/
1

votes
3

answer
1.9k

Views

How to Parse Some Wiki Markup

Hey guys, given a data set in plain text such as the following: ==Events== * [[312]] – [[Constantine the Great]] is said to have received his famous [[Battle of Milvian Bridge#Vision of Constantine|Vision of the Cross]]. * [[710]] – [[Saracen]] invasion of [[Sardinia]]. * [[939]] – [[Edmund I...
Jorge Israel Peña
1

votes
1

answer
620

Views

Change table-like items order

I have a set of divs table-like (with rows and cols), to display a soccer table. Now, I need to be able to order that table according to the key chosen, without refreshing the page and avoiding using ajax. Being more specific, I need to catch the values inside each 'columm' refeering to the key cho...
yoda
1

votes
1

answer
128

Views

What mark up language is there for Mac Os developers?

So Adobe gives GIVES US mxml FOR AIR ( Flash ) design/development (cross platform, ActionScript) Microsoft gives us XAML for .Net design/development (Windows, Silverlight, C# + VB+ F# +...) What mark up language gives us Apple for design/development of our Mac native apps?!?
Rella
1

votes
1

answer
1.4k

Views

Flex fixed and variable height - can it be set in markup?

I've got the following Flex application markup: (top menu stuff goes here) (page stuff goes here) When I run it, it displays top panel with a fixed height, and a bottom panel with variable height. I expect the bottom panel's height to contain the remaining height, but it somehow overflows off-page....
Prutswonder
1

votes
1

answer
112

Views

not able to solve markup problem [closed]

http://validator.w3.org/check?uri=http%3A%2F%2Fratingscorner.com%2Fproduct_rating.php%3Falias%3DPeoples-Education-Society-Institute-of-Technology-%28PESIT%29-100-feet-Ring-Road-Bangalore%26product%3DColleges&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&group=1&No200=1&verbose=1&s...
Hacker
1

votes
1

answer
281

Views

Do you think use of XHTML, and classes name is semantically correct in zengarden?

Lots of div and classes name are being used in the code. http://www.csszengarden.com/ Is there any scope of improvement in semantic? http://cssglobe.com/post/6957/class-names-revisited this is mentioned in source code as a comment This XHTML document is marked up to provide the designer with the max...
Jitendra Vyas
1

votes
2

answer
69

Views

WPF show small number beside all Controls

I have many FrameworkElements (TextBlock, CheckBox, ListBox..) and I would like to make something allowing me to show a small number besides every one control. Some text ³ I came with the idea to write a MarkupExtension, where I could write that number like this: .. .. and then to add it somehow to...
PaN1C_Showt1Me
1

votes
2

answer
1k

Views

How to code html forms which are complex?

I have been given the task of coding the form below. I was planning to do it using tables, however my instructor told me to do it using divs, since it takes up more resources or something(I think he said it was intensive). I can do it using divs, but I think it is a waste of time because I could mak...
Haxed
1

votes
2

answer
122

Views

Any real disadvantage to extra markup created by jQuery rounded corners?

http://www.malsup.com/jquery/corner/ Is there any real disadvantage (like SEO) to creating the rounded corners pixel by pixel using javascript generated DIVs other than being an eye-sore when looking at the markup?
bcm
1

votes
2

answer
953

Views

How to use two backgrounds for one element and put second background on top of first?

In a project I need to make headings like this and I want to use with less image and markup because Texture will be the same but Gradient are different in different sections. I have 3 things in heading. Heading text A texture over the gradient and under the heading text A gradient behind the texture...
Jitendra Vyas
1

votes
3

answer
63

Views

How do I find whether a document on the web is semantically related to some other document?

My question here is that given a document d1 on the web and a document d2 how do I tell that d1 and d2 are semantically related. Are there some API's that can do some amount of natural language processing that might give me a hint as to d1 is a probably connected to d2. I need it badly and uregently...
station
1

votes
1

answer
521

Views

Scala how to turn “urls” in Strings into an Anchor tag XML node.

Please first look at this example below to understand what I am talking about. The input is a string. XML(aka NodeSeq) will be the output. input string example = 'Hi this is an example url http://www.example.com' output of string example = Hi this is an example url http://www.example.com I am not...
Philip Nguyen
1

votes
1

answer
172

Views

Java Swing Components - why deprecated HTML markup?

I'm learning Java from a webdev background. I've been using some HTML inside Swing components, but a little part of me dies every time I see or write TwoLines So I can sleep at night, what's the reason for this poor, deprecated markup? And, if I use XHTML and inline styling, is my program at risk...
Ben
1

votes
2

answer
99

Views

markup trouble about a div and a hole in its border

is it possible to have a element (with some content, doesnt matter what is it exactly), and some element outside this div, which has a background:white property, and overlaps this div for 1 pixel at least? so that the border of div will not be of ideal rectangle form, but with a 'hole'? and, prefe...
javagirl
1

votes
3

answer
398

Views

ASP.NET server tag with colon?

I searched all around, but could not find any reasonable explanation. I found
To Ka
1

votes
1

answer
511

Views

Passing markup via composite components attributes

Is there a way to pass markup (in opposite to plain text) via composite component's attributes? Simply won't suffice, since the component rely on distinct text parameters. Passing tags via attributes as described in Include sub-element inside JSF 2.0 component does not work (invalid attribute con...
jpullmann
1

votes
1

answer
674

Views

How to deal with textile strike-through

south-west to north-east Will render: 'southwest to northeast' using Textile. I'm expecting to get: 'south-west to north-east' Isn't there a way to handle these kind of situations? Is that the intended behavior? (if so, that's really bad...) For information, I'm using Zend Frameworks Textile parser...
Matthieu Napoli
1

votes
2

answer
166

Views

css for html markup container for a

This is a bit of a general question but aim for concise html markup with minimal css in my projects and this is something that has bugged me for a long time. I often use a container element (eg: h1) with a fixed size a link and background image. EG: Markup: Brand Name Css: h1#branding { display:blo...
Mr Jonny Wood
1

votes
1

answer
295

Views

Create link from page title and add .pdf to the end

I'm no good with jQuery, but I know what I want with it is possible. Is there a way to take the page title, add it to an anchor link then add .pdf at the end? I make pdf files of all the page on our site, but would like the links created dynamically. And since the pdf's are using the page title, it...
Toasterdroid
1

votes
1

answer
71

Views

Only one item returned despite global modifier use in Regex

I'm using the javascript code below trying to extract the number after gallery-entry_ in the html markup below but instead of giving all matches it only returns the first one despite my use of the g modifier in the regex. Any idea why ? var _gallery = jQuery('ul.gallery').html(); var _pat = /'galler...
Steve
1

votes
2

answer
1k

Views

Vertical CSS timeline steady markup

Description: Have vertical timeline for 12 hours day. Height is 720px. From the first glance markup should look like: 9:00 10:00 ... 11:00 It's occured,that we should take into consideration font-size. As it's more,than less should be the value of margin-top property. Demo: see markup For current fo...
sergionni
1

votes
2

answer
174

Views

Correct Semantic use of CSS Properties

Since it is recommended not to use table elements for layout purposes (non-tabular data), because the special formatting applied to those elements may change in the future, is it also not recommended to use CSS properties such as text-align, which was designed to be used on text, for img elements fo...
Alex W

View additional questions