Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.