Webmaster Forum

Sponsored Reviews   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 09-11-2007, 11:24 PM   #1 (permalink)
Inactive
 
Join Date: 07-31-07
Posts: 50
iTrader: 0 / 0%
Latest Blog:
None

sinster is liked by many
3 images in a row, CSS

I am designing my website in css but i am getting problems with 3 images i want next to each other. i sliced the images and now the images are placing underneath each other.
Code:
.bannersubtabs{ width: 267px; height: 17px; background-image:url(images/images/left-sub.gif); font-size:93%; background-repeat:no-repeat; } .bannersubtabsmid{ margin:0px; width: 266px; height: 17px; background-image:url(images/images/mid-sub.gif); font-size:93%; background-repeat:no-repeat; }
the HTML

Code:
<div class="bannersubtabs"> <ul> <li><a href="#"><span class="bannermenu1"><span class="bannermenu">Home</span></span></a></li> <li><a href="#"><span class="bannermenu1"><span class="bannermenu">Home</span></span></a></li> </ul> <div class="bannersubtabsmid"></div>
I already tried using float but that didn't work.
And i don't want to use any tables in it so please don't say:'Just use tables"
I think there is a code for it but i tried everything but couldn't find it.
Help is appreciated.
sinster is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 09-12-2007, 01:46 AM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
have you tried to set the background image like this? :

Quote:
.bannersubtabs{
width: 267px;
height: 17px;
background-position: left top;
background-image:url(images/images/left-sub.gif);
font-size:93%;
background-repeat:no-repeat;
}

FMI:
Why don't you want to use tables? What's wrong with them?
Why a div element is better than a table element?
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2007, 06:07 AM   #3 (permalink)
Contributing Member
 
bratwebdesign's Avatar
 
Join Date: 04-05-06
Location: Nebraska
Posts: 560
iTrader: 0 / 0%
Latest Blog:
None

bratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to beholdbratwebdesign is a splendid one to behold
Send a message via MSN to bratwebdesign
have you tried floating them all left? Is the site online so that it can be viewed?
__________________
Omaha Web Design | Cube Directory
bratwebdesign is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2007, 06:26 AM   #4 (permalink)
Contributing Member
 
Join Date: 07-30-05
Posts: 282
iTrader: 0 / 0%
Latest Blog:
None

Radnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really nice
I think the DIV is a block element?!? I took the 3 GIF(s) at the top of the page here (sorry John) and wrote a quick and dirty... They went across the top of the page.

I would try in the CSS for the gifs, 'display:inline;'

linky
Radnor is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2007, 01:55 PM   #5 (permalink)
Contributing Member
 
stewart's Avatar
 
Join Date: 02-09-07
Location: New Orleans, LA
Posts: 167
iTrader: 0 / 0%
Latest Blog:
None

stewart is liked by many
Send a message via ICQ to stewart Send a message via AIM to stewart Send a message via MSN to stewart
You should definitely upload a page somewhere so we can take a look, I can't really make sense of what you need! =)
__________________
stewart:howe
Web Developer & Programmer

www.CelerMedia.com
stewart is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-14-2007, 02:10 PM   #6 (permalink)
Contributing Member
 
Join Date: 08-04-07
Posts: 110
iTrader: 0 / 0%
Trapped is liked by somebodyTrapped is liked by somebodyTrapped is liked by somebodyTrapped is liked by somebody
Anyway the both divs need to have at least 533px space so they can sit next to each other instead of under.

What you should do is float the divs. Lets presume that the FIRST image (from left to right) is sitting under the bannersubtabs class while the second image is under bannersubtabsmid class.

In that case your CSS code should look like this
Code:
.bannersubtabs{ float:left; width: 267px; height: 17px; background-image:url(images/images/left-sub.gif); font-size:93%; background-repeat:no-repeat; } .bannersubtabsmid{ float:left; margin:0px; width: 266px; height: 17px; background-image:url(images/images/mid-sub.gif); font-size:93%; background-repeat:no-repeat; }
And keep the same HTML markup. Anyway, i still don't see 3 images here, i see only 2 images.

Hope this helps, cheers.
__________________
SEO Optimization | Cheap Web Hosting
Trapped is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-14-2007, 02:48 PM   #7 (permalink)
Contributing Member
 
labrocca's Avatar
 
Join Date: 01-24-06
Location: Las Vegas
Posts: 271
iTrader: 1 / 100%
Latest Blog:
None

labrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nicelabrocca is just really nice
Send a message via AIM to labrocca Send a message via Skype™ to labrocca
http://www.alistapart.com/articles/practicalcss/

You have that html/css all screwed up.
__________________
Political Debate- Join this site to have indepth politics discussion.
Pron Proxy - Free anonymous proxy browsing
labrocca is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-16-2007, 09:39 PM   #8 (permalink)
Inactive
 
Join Date: 07-31-07
Posts: 50
iTrader: 0 / 0%
Latest Blog:
None

sinster is liked by many
No The page is not yet uploaded anywhere..just trying to build..I will take all you r suggestions and do try to build it..Thanks guys for your time and advice
sinster is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What type of images and royalty free images do developers and webmasters need? EZRoyaltyFree Web Design Lobby 0 02-26-2008 09:11 AM
How often does google upload images to Google Images? tessatoons Google Forum 6 10-05-2006 05:46 AM
New images Sketch Graphic Design Forum 4 03-17-2006 05:15 PM
Bg images Fusion Web Design Lobby 10 08-12-2004 10:10 PM
php images? JuggoPop Coding Forum 4 03-31-2004 01:32 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 10:17 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.