Jump to content

CSS3


otuatail

Recommended Posts

Hi I thought I would try out CSS3 as it is suported by the latest version of firefox. My example should use an image for the sides of my box. Am I doing thiss wrong or have misinterpreted the whole thing.

 

standard
{
    FONT-WEIGHT: normal;
    FONT-SIZE: 20pt;
    COLOR: red;
    FONT-FAMILY: 'Arial Narrow';
}

.pic
{
border-image: url(border.png) 27 27 27 27 round round;
border-style:solid;
border-width:1px;
width:200px;
height:200px;
} 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<LINK rel="stylesheet" href="css3.css" type="text/css">
<title>CSS 3 Test</title>
</head>
<body>
<div class="pic">
Test using firefox 3.6.6 & IE8
</div>
<div class="standard"><br /><img src="border.png" alt=""></div>
</body>
</html> 

 

TIA

Desmond

 

 

Link to comment
https://forums.phpfreaks.com/topic/207707-css3/
Share on other sites

If you want to use CSS3 selectors, then you don't really have any other option at this stage in the game.

 

As for bloat in CSS files, to give you a bit of perspective, one small image on a site will be much larger than your largest CSS file you would have on pretty much any site. So a few extra lines of CSS code isn't going to make a big difference in your download speeds.

Link to comment
https://forums.phpfreaks.com/topic/207707-css3/#findComment-1086191
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.