473,411 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Images in classes

Can anyone suggest how to insert a small graphic at the start of each
occurence of a class?

Roughly, and without regard to syntax, the page goes something like this -

<class1>
<graphic>
<text>
</class1>

<class1>
<graphic>
<text>
</class1>

<class1>
<graphic>
<text>
</class1>

TIA

BernieH

Jul 21 '05 #1
3 1262
"BernieH" <bh*******@ozemail.com.au> writes:
Can anyone suggest how to insert a small graphic at the start of each
occurence of a class?


..class:before {
content: ...;
}

Poorly supported by browsers.

Or, better supported, just put the image in yourself as an <img>.

--
Chris
Jul 21 '05 #2
On Fri, 15 Oct 2004 21:29:03 +1000, BernieH wrote:
Can anyone suggest how to insert a small graphic at the start of each
occurence of a class?


Use a background with no-repeat, and top padding.

Berislav
Jul 21 '05 #3
Berislav Lopac <be************@dimedia.hr>:

Use a background with no-repeat, and top padding.


This workaround for browsers that don't understand ':before' and/or
'content' often causes strange gaps in texts, when images are disabled and
CSS enabled, e.g. in the Wikimedia default layout. I recommend to use the
method, which is intended for this and live with non-display in some
browsers.

--
"Some people say I am a terrible person,
I'm not, I have the heart of a young boy,
in a jar, on my desk."
Stephen King
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
In my style sheet I've set the links like this: a:link{ text-decoration:none; } I did that for the pseudo classes and I also did that for the image tag. Yet there are still link lines...
3
by: MediaDesign | last post by:
so there's the problem: my text links have background images and when I put links around images on my page, they too get the background image treatment which I do not...I have tried several...
14
by: Eli | last post by:
I'm fairly unfamiliar with CSS, but want to develop a way to skin a web application by using stylesheets for everything, including all images. I have a set of images used as buttons - mostly for...
3
by: vj | last post by:
how to change images based on action. Even clicking changed images should do respective actions. and while displaying only one image at a time sholud get displayed. I am using three images for a...
4
by: JoJo | last post by:
I followed along in Jeremy Keith's book "DOM Scripting" on how to make a image viewer that changes on clicking links. It is up for demo at: http://jojowebdesign.com/dom1.html My question is...
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
2
by: wstsoi | last post by:
hi I have to read images from spreadsheet, is it possible to do with php?
0
by: satishLikesCoding | last post by:
Hi, Currently I have 3 stylesheet classes, each rendering an image as background. I have 3 images as.. Left half rounded Middle covered area Right half round When I attach 1 of the...
15
Samishii23
by: Samishii23 | last post by:
First, images... I have a project that, at this time and version I am working with, I have 648 main stay images, so to say, plus another 100 or so in side features. They are going to stored in a...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.