IBM developerWorks
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2003, 06:51 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
positioning question for CSS

hi

I'm new to CSS (although very happy to have become aquainted....) and i'm a bit stuck.

I have 4 images floating on the RHS of my page roughly following this tutorial . I want to use them as roll-over buttons and have a gif attached above each image naming the link.

I'm not really sure how to do this taking into consideration magins, etc.

I did consider for an east solution combining the original gif image and the JPEG image into one file but then the overall look is sub standard when compressed....

any help would be great,

thanks,

jim

Last edited by billybonds : October 28th, 2003 at 10:13 AM.

Reply With Quote
  #2  
Old October 28th, 2003, 06:56 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
not sure if that 2nd paragraph is clear....

at the moment there are only the JPEG images floating on the RHS of the page. I want to have the appropriate gif attached to the appropriate JPEG as a label but with the margins set to 15px to space out the images I'm not sure how to do this....

Reply With Quote
  #3  
Old October 28th, 2003, 07:50 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 3 m 32 sec
Reputation Power: 171
Remember this: Margins point inwards (internal) and padding points outwards (external).

padding:15px;

Reply With Quote
  #4  
Old October 28th, 2003, 08:21 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
it's ok - i've got it by creating a different class for the gifs with different margin settings....

i like css!

Reply With Quote
  #5  
Old October 28th, 2003, 08:37 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
oops..... i spoke too soon!

2 things :-

1) I want to use the images as rollover buttons. However in DW I am only able to select the top image - all the rest in design view are as if they are not there.

2) When I preview in IE (haven't checked any others yet) by pressing F12 all looks as it should until I go to a different and come back. When I come back all images are lined up horizontally along the top.

Any ideas?

Thanks,

Jim

Last edited by billybonds : October 28th, 2003 at 10:14 AM.

Reply With Quote
  #6  
Old October 28th, 2003, 08:42 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
My code:

.floatright {
float: right;
margin: 0px 15px 15px 15px;
clear: right;
}

.floatright-b {
float: right;
margin: 0px 15px 0px 15px;
clear: right;
}

<img class="floatright-b" src="images/mission.gif" width="110" height="25"><img class="floatright" src="images/our_mission_image_off.jpg"><img class="floatright-b" src="images/about.gif"><img class="floatright" src="images/about_us_image_off.jpg"><img class="floatright-b" src="images/help.gif"><img class="floatright" src="images/help_us_image_off.jpg"><img class="floatright-b" src="images/volunteer.gif"><img class="floatright" src="images/volunteer_image_off.jpg">

Reply With Quote
  #7  
Old October 28th, 2003, 09:27 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
ok (....if anybody's listening.... sniff...) I've added dimensions to all Gifs and JPEGS and now they seem to be holding their position in the web page.

Also now only the second image down is only invisible to DW.... (although the bottom image only picks up about halfway down)

Reply With Quote
  #8  
Old October 28th, 2003, 09:48 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
ok it's all working now

Reply With Quote
  #9  
Old October 28th, 2003, 09:48 AM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 3 m 32 sec
Reputation Power: 171
Dreamweaver is really crap. Write virtually any custom code and it will ignore it. Example:

<b><i>Text</b></i>

It will throw a fit because they are not in perfect order.

Reply With Quote
  #10  
Old October 28th, 2003, 10:12 AM
billybonds billybonds is offline
No. 4
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK
Posts: 89 billybonds User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 sec
Reputation Power: 5
i'm beginning to see that..... thing is about 10 weeks ago i didn't know my HTML from my a*se and I don't really have the confidence to 'go it alone'

having said that it HAS been a massive help in getting me as far as i am

cheers,

jim

Reply With Quote
  #11  
Old October 28th, 2003, 04:25 PM
bcyde's Avatar
bcyde bcyde is offline
Me likey breadsticks...
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 1,189 bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 12 m 57 sec
Reputation Power: 12
Send a message via AIM to bcyde Send a message via Yahoo to bcyde
Quote:
Originally posted by PHP-Newb
Dreamweaver is really crap. Write virtually any custom code and it will ignore it. Example:

<b><i>Text</b></i>

It will throw a fit because they are not in perfect order.


The reason it throws a fit is because in order to be XHTML compliant your tags should be nested correctly.

-b
__________________
PostgreSQL, it's what's for dinner...

Reply With Quote
  #12  
Old October 29th, 2003, 05:09 PM
Winters Winters is offline
Bad Coder
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jul 2003
Posts: 1,744 Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level)Winters User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 12 h 3 m 32 sec
Reputation Power: 171
True, but a verified page will still run with no problems what so ever, whereas dreamweaver will ignore the tags.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > positioning question for CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |