opinion

CSS for Mobile?



Any good developer knows that you’re only as good as your bag of tricks – well, and your adherence to standards compliance! For those of you in the standards compliance camp, while you should never rely solely on tricks to make your site stand out, style sheet tricks will allow you to get the most out of your CSS-based projects and CSS may prove even more beneficial to your mobile efforts.

Separate CSS for Mobile/Handheld Devices

Mobile is the wave of the future and many developers are trying to capitalize on this new demographic growth as fast as they can. In order to create a separate style sheet for mobile users, there is a snippet of code that can be used in order to identify mobile users from traditional Web users and give them new styles so that your site will look even better on the small screen.

link type="text/css" rel="stylesheet" href="handheldstyle.css" media="handheld"

You can set up your mobile style sheets to allow for vertical-only scrolling by keeping your maximum widths to 150 pixels and allowing for smaller font sizes or other mobile-positive format styles that will help your users get the most out of your site.

Related Article

Mobile Market to Hit $3.5 Billion

Click here to mail me for sensible processing options to boost your bottom line and opportunities for branding and marketing exposure.

Click Here for Additional Help Starting or Improving Your Online Business

Copyright © 2026 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

What to Know About Alabama's Regulatory Push on Adult Content

Over the past two years, Alabama has quietly but aggressively transformed itself into one of the most restrictive and unfriendly jurisdictions for the adult entertainment industry. Through the enactment of House Bill 164 and related enforcement mechanisms, the state has layered taxation, compliance burdens and content restrictions in a way that goes far beyond traditional regulation.

Corey D. Silverstein ·
opinion

How AI Is Turning Adult Retailers Into Developers, No Degree Required

Every long relationship with software hits a point where you realize the tool isn’t exactly what you need. It does what the vendor assumes you need, often created by engineers who have never counted units in a stockroom or looked at countless stockouts and wondered which ones really matter.

Zondre Watson ·
opinion

Why Discretion Has Been the Defining Force in India's Sex Toy Market

One of Besharam’s earliest customers contacted us three times before placing an order. Not about the product, but about the packaging. “Will anyone know what’s inside?”

Raj Armani ·
profile

Joey Mills Harnesses Demon Twink Energy Into Industry Staying Power

On the surface, Joey Mills might seem like one of gay porn’s quentessential bad boys. He plays a snarky scamp seducing stepdads as a Men.com exclusive and leans into villainy on the Daddy TV reality show “X-Rated: NYC." And yet, despite being a highly recognizable face in the industry, he comes across as grounded, affable and self-aware in a way you might not expect

Christian Cintron ·
opinion

How to Pivot Platforms Without Disrupting Your Income

As a creator, you must inevitably navigate the constantly changing terms of service, regulations and financial systems of various platforms. Those platforms host your content at their own discretion, so deplatforming is always a possibility.

Sara Star ·
profile

Julie Stewart on Leading Sportsheets While Honoring Its Family Roots

When Sportsheets founder Tom Stewart retired at the start of 2020, he left the company in the capable hands of his sister, Julie Stewart. Since taking over as CEO, she has guided Sportsheets through an era of transformation, resilience and renewed purpose.

Ariana Rodriguez ·
opinion

Creator Tips for Making the Most of Adult Industry Expos

Showing up to industry expos is one of the smartest moves a creator can make. If it’s your first time going and the idea makes your stomach flip a little, don’t worry. Preshow jitters are perfectly normal. But if you’re serious about building real momentum, throw those doubts and worries out the window and pack your bags.

FrenchAva ·
profile

Tracy Eagle Soars as Co-Boss of Betty's Toy Box

They say sisterhood is powerful. For proof, you need look no further than Tracy and Carolyn Eagle, two sisters who have built not just one but three online retail brands together.

Women In Adult ·
opinion

How to Draw in and Retain High-Spending Fans

One of the biggest misconceptions in the creator economy is that follower count determines revenue. Many creators assume the path to higher earnings is simply more traffic, subscribers and views. In reality, it’s common to see a tiny fraction of fans responsible for the majority of spending.

Alex Lirette ·
profile

Essence Protection Brings Specialized Coverage to Adult Retail

For adult businesses, swimming against the mainstream current makes it hard to find an insurance company that can keep up. One company is aiming to change that.

Colleen Godin ·
Show More