Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ipad Spicific CSS


jack_frost

Recommended Posts

Posted

Hello!

 

I have a design problem, the ipad scales down my background, because it is a little S**T (ive been working on this problem for a while)

 

I found a solution for this:

 

<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="../ipad.css" type="text/css" />

 

The ipad will grap this, and use the Ipad.css instead of the stylesheet.css this is smart and clever!

 

However, i have no idea as to where to put this link?!

 

i cant seem to find anywhere, where OsC pulls the CSS file?

 

should i put it in the Index.php? og the Header.Php?

 

I hope someone can help :)

 

 

- Jesper

Posted

I think the CSS is loaded in /catalog/includes/template_top.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

It was indeed! thank you kind sir.

 

However, it doesnt work.

 

If i delete the

 

<link rel="stylesheet" type="text/css" href="stylesheet.css" />

 

and replace it with

 

<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />

 

The ipad loads the ipad.css however, i cant make it pull the ipad.css if the

 

<link rel="stylesheet" type="text/css" href="stylesheet.css" />

 

Exists.

 

has it something to do with the sequence? - i tried to add the ipad.css pull before the stylesheet.css but the ipad doesnt care.

 

help? :(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...