![]() | ![]() |
|
Welcome to the HEXUS.community discussion forums forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and other features. By joining our free community you will have access to post topics, respond to polls and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! |
|
|||||||
| Software and web development Databases, graphics, programming, scripting and web development. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
OMG!! PWND!!
Join Date: Dec 2003
Location: In front of computer
Posts: 963
Thanks: 0
Thanked 0 Times in 0 Posts
|
Addressing individual images with CSS
As the title says, how do i identify an individual image with Style sheets? Im kinda new to the whole css thing, but i need one of my pics to be width and height at 80% while the rest are normal...
ohh, also, what is the alignment thing, like text-align, for images? |
|
|
|
|
|
|
#2 (permalink) |
|
Senior Member
Join Date: Sep 2003
Posts: 4,864
Thanks: 12
Thanked 5 Times in 5 Posts
|
www.w3schools.com
Give the image an id. In the stylesheet do (i think) #img .myimage { whatever here } Then, in the img tag, do class="myimage". That way the stylesheet will know it's an image of that id. |
|
|
|
|
|
#7 (permalink) |
|
Senior Member
Join Date: Feb 2004
Location: Milton Keynes, UK
Posts: 320
Thanks: 6
Thanked 2 Times in 1 Post
|
Stylesheets promise sooo much and on the surface deliver but they will cause premature baldness and loss of sleep.
Just wait till you open it in a standards compliant browser!!! GAteKeeper |
|
Keeper of the Gates of Hell
|
|
|
|
|
#8 (permalink) |
|
Ah, Mrs. Peel!
Join Date: Oct 2003
Location: Hertfordshire, England
Posts: 3,317
Thanks: 2
Thanked 4 Times in 4 Posts
|
Originally Posted by GAteKeeper
I would argue that it is not CSS that causes baldness or loss of sleep, but Internet Explorer's lack of compliance - but that's another topic!
|
|
"Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."
|
|
|
|
|
#9 (permalink) |
|
Flak Monkey!
Join Date: Jul 2003
Location: UK - South Wales
Posts: 1,762
Thanks: 36
Thanked 17 Times in 15 Posts
|
Originally Posted by mike_w
Id agree. In my view all browsers every where should use the exact same basic model of how to interpret css, that being the way the W3C wishes it to be implemented. We wouldn't have these time wasting and down right frustrating problems then. Although i have to say i havent had that many issues. initially when i first started to use CSS i have loads of problems in IE but not too many now thank god
. There we go, said my bit lets get back OT since i did go off it a bit. |
|
|
|
![]() |
| Breadcrumb | ||||||
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do the CS:S lot play 1.6 aswell? | Russ | HEXUS CS:Source Clan | 60 | 21-06-2006 12:09 PM |
| CSS presentation in FF and IE | ikonia | Software and web development | 10 | 30-01-2005 05:41 PM |
| divs and CSS | Kezzer | Software and web development | 11 | 18-11-2003 11:51 AM |
| CSS + Other Language Questions | Jonny M | Software and web development | 7 | 11-10-2003 11:17 PM |
| CSS Help | Basher | Software and web development | 19 | 10-09-2003 08:13 PM |