I have a layout that looks well in normal browsers, but in links and lynx is looks like a large jumble of text. I'd like to add a <hr> or <br> between sections in the text browsers, but I don't want them to interfere with the CSS layout in normal browsers. I tried setting hr {display: none;} in the CSS, but it's also hiding it in the text browsers.
Display HTML element only in text browsers?
1.4k Views Asked by Lucas Phillips At
1
There are 1 best solutions below
Related Questions in HTML
- Delay in loading Html Page(WebView) from assets folder in real android device
- Why does a function show up as not defined
- CSS Class is not applying to element (border width,color,and style attributes)
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- Automatically closing tags in form input?
- Positioning child at bottom of parent with scroll
- Remove added set of rows
- Website zoomed out on Android default browser
- Twitter Bootstrap horizontal form elements on a line
- http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- Svg containers not positioning properly
Related Questions in CSS
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in BROWSER
- Why does Angular send Http Request Method: Options before POST?
- Trick browser into resizing the viewport dimensions by 1px
- Why is it so hard to style <select> and <option> elements?
- Change writing language at browser
- Selenium stops running after click() function runs
- Are there any debugging tools for the Opera Mini mobile browser?
- place 1 label top, 1 input bottom and 2 buttons left
- Why clear cache does not work with all browsers?
- Opening Browser Instances from different Vendors
- Browser's not displaying images correctly
- Open a html document with php
- How to run a .jar inside browser?
- Why/how does the browser decide ☃.net goes to xn--n3h.net
- How do you invoke another app from a child browser
- Firefox and SSL pages - takes very long on certain sites
Related Questions in LYNX
- extracting text from html file with bash
- Display HTML element only in text browsers?
- lynx can I stop it splitting urls?
- regular expression to extract data from html page
- How to configure Emacs/VM to decode text/html mails using lynx rather than emacs-w3m?
- Java HTML normalizer?
- jsf and text based browser
- Unix lynx in shell script to input data into website and grep result
- Open URL periodically, without web browser
- How can I screen-scrape the HTML result of a non-trivial user scenario
- MAC OSX LION: gcc on mac not compiling wget
- Lynx file "/etc/lynx.lss" is not available
- Using lynx in a shell, store dump for further grep
- Lynx removes newline characters from post_data input
- Which CPAN module would you recommend for turning HTML into plain text?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
UPDATE 21/12/2016: tty will be deprecated (along with a lot of other media types that you can check here https://drafts.csswg.org/mediaqueries/#media-types) and should be substituted with a combination of media feature, a method that is a more fine-grained test than media types, testing a single, specific feature of the user agent or display device. For targeting a text browsers you can ty with a combination with the grid plus monochrome feature.
ORIGINAL ANSWER:
As Paul stated, you should use the media queries to let the browsers select the css that suits better for the device/browser. For text browser, such as lynx and links, you should use the following media query:
tty
that is the format suited for media using a fixed-pitch character grid.
To target CSS rules you can import the css files with
<link>tag specifing the media like this:or by defining the media inside a css file using the following syntax :
for a detailed description of the available media queries, please check the following page: http://cssmediaqueries.com/what-are-css-media-queries.html