Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2004, 08:00 PM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default Image Properties & CSS

Beginning CSS.

Using CSS to setup a page template. I can work with DIV, SPAN, P, and most page elements with little trouble. However, I have been unable to apply a default style to the image tag - i.e. border, border-width, etc.

I've tried using the img tag in the style sheet

img{
border:XXXX
}

But this did not work.

Although I didn't want to add a "class" to each image, I tried and that didn't work either

style sheet

.img1{
border:XXXXX
}

img tag in document body

<img src="XXXX" class="img1">


Any help would be appreciated.

Best regards,
sabertec2
 
Old October 10th, 2004, 09:03 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Can you provide a link to the project?

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old October 10th, 2004, 09:26 PM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Rich,
As strange as it sounds, I found the problem - Norton Anti-Virus and Windows XP SP2.

I went to a machine that has XP SP2 and another anti-virus program and it works as it should.

Still baffles me why it would affect the "img" tag and not others???

Thanks for the reply and sorry for the inconvenience. I do have a couple of other questions that I'll put into a new topic.

Thanks,
sabertec2





Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
Object Properties & document.activeElement interrupt Javascript How-To 4 April 21st, 2005 03:49 PM
iframe css properties? nerssi CSS Cascading Style Sheets 14 October 4th, 2004 04:05 AM
working with enums & properties miguel.ossa C# 2 January 22nd, 2004 04:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.