Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 30th, 2016, 03:21 PM
Registered User
 
Join Date: Sep 2016
Posts: 5
Thanks: 0
Thanked 2 Times in 1 Post
Default Theme Question

Hello,

When dealing with CSS and designing for computers and mobile devices, html can have the media type of screen, handheld, print, ...etc built into the <link> code.
HTML Code:
<link href="App_Themes/default/screen/screen.css" media="screen" rel="stylesheet" />
When using themes it doesn't seem to have an option for this. Does anyone know how to do this for themes? Or should it all be designed in one .css file using flex and @media?

Thanks!

Last edited by lasttccasey; September 30th, 2016 at 03:23 PM..
 
Old October 3rd, 2016, 07:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The themes feature predates the wave of mobile improvements and thus there's no built-in support to handle this cleanly.

You can indeed include your mobile code in @media blocks. As an alternative, you can have a separate file in your them for this; it will be included in the same way but it gives you a cleaner way to manage your files during development.

As a final alternative, you could create a separate theme for mobile devices.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 6- theme aman7 BOOK: Beginning ASP.NET 4 : in C# and VB 2 November 5th, 2012 01:48 AM
Theme Armaan BOOK: Beginning ASP.NET 4 : in C# and VB 5 April 25th, 2012 07:13 AM
Chapter 6 User-Selected Theme Question jabo2099 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 August 21st, 2008 03:45 AM
Theme Selector wont pick up other theme Tawanda BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 May 4th, 2007 08:44 AM
theme selector rav BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 February 12th, 2007 12:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.