CSS thumbnails - overriding margins

This is a discussion on "CSS thumbnails - overriding margins" within the Web Page Design section. This forum, and the thread "CSS thumbnails - overriding margins 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 Jul 17th, 2007, 09:55
New Member
Join Date: Jul 2007
Location: London
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
CSS thumbnails - overriding margins

Hello all,

I'm new here and looking forward to learning from all the experts out there!

I have a slight problem on a page I'm currently working on:

http://www.customportraits.co.uk/cus...-cssedit.shtml

As you can see I've added right and bottom margins to the links/images just to space out the CSS thumbnails. However I am trying to override the right hand images with a class (class="thumbsnopad") with no right margin, so that it fits into the the overall layout. However it doesn't seem to be working and the right side images are just breaking onto the next line.

It supposed to be lke this (but I've been told the coding is clumsy):

http://www.customportraits.co.uk/cus...-gallery.shtml

I would be most grateful if anybody can have a look and tell me where I'm going wrong.

Thanks,

PJC
Reply With Quote

  #2 (permalink)  
Old Jul 17th, 2007, 12:34
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS thumbnails - overriding margins

It's a little difficult for me to know for sure because you don't have any width's specified for the images in the lists.
But looking at the properties of the images some are 254 px wide and some are 255px wide. My guess is if you just reduced the margin-right on the thumbs a you'll be able to fit those three on a line.

Code: Select all
#thumbs a{
    padding: 0px 0px 6px;
    margin-bottom: 6px;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: #B2CBE4;
    float: left;
    margin-right: 6px;Try 5 or 4 here and see what happens
    margin-top: 0px;
    margin-left: 0px;
}
Reply With Quote
Reply

Tags
margins, thumbnails

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
Overriding a pre-existing webpage gidgetgirl Starting Out 17 Oct 5th, 2007 12:52
Overriding display:inline-block gazzou Web Page Design 0 Aug 27th, 2007 12:03
ff margins Dapandyman Web Page Design 10 Feb 12th, 2007 23:03
Overriding pre-set text/font size autumn_whispers2me Web Page Design 10 Apr 25th, 2005 17:24
body margins benbacardi Web Page Design 2 Apr 10th, 2004 14:51


All times are GMT. The time now is 16:16.


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