Styles in classes?

This is a discussion on "Styles in classes?" within the Web Page Design section. This forum, and the thread "Styles in classes? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Dec 1st, 2005, 17:09
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Styles in classes?

I'm trying to get a number of rectangles below eachother that all get a green border on rollover. I've put them all inside separate divs and have succeeded in making these rectangles but I wanted to place em all inside a class so that i could use em repetitively. But things are going wrong.

Can u put style aspects inside classes?

I can't do an id cos i use it more than once.

Any help? Cheers.

Last edited by timmytots; Dec 1st, 2005 at 17:31.
Reply With Quote

  #2 (permalink)  
Old Dec 1st, 2005, 17:12
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Styles in classes?

Yes, you can put any css inside a class.
What exactly is going wrong?
Reply With Quote
  #3 (permalink)  
Old Dec 1st, 2005, 17:32
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Styles in classes?

I always find in situations like this, t's best to post your code, or far more preferabally, give a URL.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #4 (permalink)  
Old Dec 1st, 2005, 21:31
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herkalees Send a message via MSN to herkalees Send a message via Yahoo to herkalees
Re: Styles in classes?

Like this?

<div class="name" style="margin:10px; border:1px solid #ccc;">content</div>

Yes, no?
Reply With Quote
  #5 (permalink)  
Old Dec 2nd, 2005, 01:20
SuperMember

SuperMember
Join Date: Nov 2005
Location: England
Age: 27
Posts: 308
Thanks: 1
Thanked 0 Times in 0 Posts
Re: Styles in classes?

http://www.crewsfx.com/gallery/interactive.html

I was trying to get it so that the individual rectangles' borders went green on rollover. Is that possible, whilst keeping them under one class?

Now I can't seem to get the block of text at bottom centred. I've tried divs in every place. Infuriating.

Also, is there a way of getting the text within each rectangle to be aligned centred vertically? I tried vertical-align: middle; to no avail.
Reply With Quote
Reply

Tags
styles, classes

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS conflicting styles ttaxi Web Page Design 2 Mar 28th, 2008 16:01
Attaching styles/classes to Javascript. Help! super8kid Web Page Design 1 Sep 14th, 2006 14:53
who wants to talk about css print styles? PixelLuv Web Page Design 4 Jul 14th, 2006 14:51
styles on tables cyberseed Web Page Design 12 May 23rd, 2006 16:34
Need Help with styles and where to start on this mess... EAndrews Web Page Design 10 Nov 7th, 2005 20:46


All times are GMT. The time now is 03:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43