![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||||
| |||||||
|
|
I am building a default sheet for my linux-related pages. Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good readibility on browsers w/o css-support. |
|
For important notes, warnings etc I use the <pre> tag, which shows in a neat bordered box when viewed with css, and depending on its class a clarifying background-image is shown. |
|
I would like the background image to 'break out' of the surrounding border, so it shows as overlapping the bordered text edge. I tried using a negative background-position but that makes the image disappear under the border. z-index no help here, as it relates to all of the <pre> tag. |

|
FIRST QUESTION: Any idea how I can have the images shown overlapping both the underlying page and the styled content without resorting to complicating separate tags and/or absolute positioning? |
|
Then I have code samples on my pages, and I would prefer to use the code> tags surrounding these. Unfortunately this doesn't keep the formatting like <pre> does, including spaces, returns etc. So I am tempted to use pre tags instead with a class 'code' added, but this isn't correct use of the available tags in html. |
|
SECOND QUESTION: Is there a way of making my code tags adopt the <pre qualities wrt formatting ? Or is the only way using <code><pre> ... /pre></code> combo's? (Aligning properly using  , tabs and such is really not a desirable option.) |
|
Thanks for reading, and more so for replying! |
#3
| |||||||
| |||||||
|
|
Schraalhans Keukenmeester wrote: I am building a default sheet for my linux-related pages. Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good readibility on browsers w/o css-support. Do we? I use linux, and I occasionally check my pages in one of the text browsers, but I normally use konqueror and sometimes firefox. Do you know what the stats are for text only usage? I would like to know. Thanks! Hmm, I may have exaggerated here. And I have no stats either. I was just |
|
For important notes, warnings etc I use the <pre> tag, which shows in a neat bordered box when viewed with css, and depending on its class a clarifying background-image is shown. I would stick to using <pre> for preformatted text, like formulae and poetry. Keep it to its intended use for clarity. |
| I would like the background image to 'break out' of the surrounding border, so it shows as overlapping the bordered text edge. I tried using a negative background-position but that makes the image disappear under the border. z-index no help here, as it relates to all of the <pre> tag. In text only mode, this is obviously pointless. This would be for the graphically enabled. ![]() |
| FIRST QUESTION: Any idea how I can have the images shown overlapping both the underlying page and the styled content without resorting to complicating separate tags and/or absolute positioning? I don't think so, but I wouldn't ask me if I was trying to do this. There may indeed be a way with javascript or something similar. |
|
Then I have code samples on my pages, and I would prefer to use the code> tags surrounding these. Unfortunately this doesn't keep the formatting like <pre> does, including spaces, returns etc. So I am tempted to use pre tags instead with a class 'code' added, but this isn't correct use of the available tags in html. I would use the code tag, and specify a monospace font within the style definition. Courier is an obvious but ugly choice. I might pick another font as the primary option, and downgrade back to courier for those who don't have the other fonts. |
|
SECOND QUESTION: Is there a way of making my code tags adopt the <pre qualities wrt formatting ? Or is the only way using <code><pre> ... /pre></code> combo's? (Aligning properly using  , tabs and such is really not a desirable option.) In a style sheet. See above. How does one ensure <code> content looks neatly indented on a non-styled |
| Thanks for reading, and more so for replying! Thanks for asking, I hope this helps. Carolyn Cheers, and welcome. It did help, or at least refuel inspiration. |
#4
| |||
| |||
|
|
Schraalhans Keukenmeester wrote: Courier is _indeed_ ugly. recognizable though, and immediately associated by many with coding. Any font in particular you'd go for in the monospaced department? I like... font-family: "Bitstream Vera Sans Mono", "Lucida Console", "Andale Mono", monospace; |
#5
| |||
| |||
|
|
Monospaced fonts are mostly only used for coding examples, which generally only need ASCII characters anyway. |
|
And when a glyph is missing, the browser *should* substitute in a glyph from another font anyway. (Of course, not all browsers are smart enough.) |
#6
| |||
| |||
|
|
Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good readibility on browsers w/o css-support. |
|
For important notes, warnings etc I use the <pre> tag, |
|
which shows in a neat bordered box when viewed with css, and depending on its class a clarifying background-image is shown. |
#7
| |||
| |||
|
|
Having skimmed through a few of your Unicode tables, |
|
I can't find any characters that display in the non-<tt> column, but not the <tt> column, |
|
so I suppose that MSIE is doing font substitution. |
#8
| ||||||
| ||||||
|
|
Carolyn Marenger wrote: Schraalhans Keukenmeester wrote: I am building a default sheet for my linux-related pages. Since many linux users still rely on/prefer viewing textmode and unstyled content I try to stick to the correct html tags to pertain good readibility on browsers w/o css-support. Do we? I use linux, and I occasionally check my pages in one of the text browsers, but I normally use konqueror and sometimes firefox. Do you know what the stats are for text only usage? I would like to know. Thanks! Hmm, I may have exaggerated here. And I have no stats either. I was just thinking of 'all' those poor people out there working on *nix boxes with no X support installed. Or projecting my own experience onto an imaginary crowd. So rephrase: It is possible my page will be viewed using browsers that don't support css styling, or by people who have style turned off. And judging from my own experience and prejudice, such users -if any- are more likely to be found amongst *nix users than MS slaves. As for the stats, I intend to find out. Anyways, adhering to (widely accepted) standards/recommendations never hurt anyone. |
|
For important notes, warnings etc I use the <pre> tag, which shows in a neat bordered box when viewed with css, and depending on its class a clarifying background-image is shown. I would stick to using <pre> for preformatted text, like formulae and poetry. Keep it to its intended use for clarity. Precisely my point! I've seen the weirdest and highly unorthodox (ab)use of tags and constructs. All hidden quite nicely in popular browsers, but close to unusable in others, at times. |
|
I would like the background image to 'break out' of the surrounding border, so it shows as overlapping the bordered text edge. I tried using a negative background-position but that makes the image disappear under the border. z-index no help here, as it relates to all of the <pre> tag. In text only mode, this is obviously pointless. This would be for the graphically enabled. ![]() Correct. The text-only/no-css browsing blahblah above only served as a motivation/defense for my intent to comply with standards. |
|
FIRST QUESTION: Any idea how I can have the images shown overlapping both the underlying page and the styled content without resorting to complicating separate tags and/or absolute positioning? I don't think so, but I wouldn't ask me if I was trying to do this. There may indeed be a way with javascript or something similar. I am trying a new construction with a wrapper div and relative placement of the bg image outside the <pre> tag. Not ideal, but it works okay sofar (only I am scared to try my handiwork in IE now... I may need counseling later on). |
|
Then I have code samples on my pages, and I would prefer to use the code> tags surrounding these. Unfortunately this doesn't keep the formatting like <pre> does, including spaces, returns etc. So I am tempted to use pre tags instead with a class 'code' added, but this isn't correct use of the available tags in html. I would use the code tag, and specify a monospace font within the style definition. Courier is an obvious but ugly choice. I might pick another font as the primary option, and downgrade back to courier for those who don't have the other fonts. Courier is _indeed_ ugly. recognizable though, and immediately associated by many with coding. Any font in particular you'd go for in the monospaced department? Most I've ran into have as much as or less appeal than courier. While we're at it, which regular font strikes your fancy? |
|
Cheers, and welcome. It did help, or at least refuel inspiration. And made me laugh indirectly (I checked out your domain in my browser. Never before read a whole site's content in under 10 secs.) |
I am glad it gave you a laugh!
#9
| |||
| |||
|
|
Try <http://ppewww.ph.gla.ac.uk/~flavell/...a06.html#x0679 Yep -- that was one of the pages I looked at earlier. Every character that displays in the "&#dec;" column also displays fine in the "<tt>" column; sometimes in a different font, though that is to be expected. This is the latest IE 7 beta, installed on a plain Windows XP SP 2 system. No fonts installed apart from those that were there by default. |
#10
| |||
| |||
|
|
On Mon, 27 Mar 2006, Toby Inkster wrote: Try <http://ppewww.ph.gla.ac.uk/~flavell/...a06.html#x0679 Yep -- that was one of the pages I looked at earlier. Every character that displays in the "&#dec;" column also displays fine in the "<tt>" column; sometimes in a different font, though that is to be expected. This is the latest IE 7 beta, installed on a plain Windows XP SP 2 system. No fonts installed apart from those that were there by default. So this is very different from Internet Explorer 6! |
|
IE 6 takes all Arabic letters in <tt> from Courier New (or whatever your choice was). Courier New lacks many "extended Arabic" letters but it claims to "support Arabic". |
![]() |
| Thread Tools | |
| Display Modes | |
| |