Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
question about images
Old 12-16-2009, 02:57 AM question about images
Ultra Talker

Posts: 254
Trades: 0
i have a design which i sliced in photoshop and as per the requirement i had to slice into 5 images and each slice had a different width however the total of the 5 images is 900px and fixed height of 200px

so each of the 5 images have a height of 200px and width with different values which add upt0 900px which is the total width of the photoshop design


i used a center layout page with the wrapper set to 900px, when i used 5 image tags all the images were sitting next to each other except for the last 5th image which was starting in the next line however in the design all should appear next to each other, i total width of the div which holds the images is
900px and also the total width of each images is 900px.


so i created 5 inner divs inside a containing div and i set the width and height of the inner divs based on the width and height of each images and this worked fine


however i tried another method of using 5 img tags inside just 1 div and in the css i mentioned
#div img{
float: left;
}

after i used this method all the images were sitting next to each other as per the design, if i remove float: left; then the last image starts in a new line


any reason why when i was using all 5 img tags with giving float: left the last image was starting in a new line as the total width is 900px

thanks.
sudhakararaog is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-16-2009, 03:08 AM Re: question about images
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
any reason why when i was using all 5 img tags with giving float: left the last image was starting in a new line as the total width is 900px
At least a dozen.

Should we start a process of duessing which one it is? It will takes about a week to complete. we guess, you try. we guess again, you try again. And so on. Might get lucky of course and get it right first time!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-16-2009, 03:10 AM Re: question about images
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
OR would you simply prefer to actually show us the problem with a URI and we will probably find it pretty quickly?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-16-2009, 03:25 PM Re: question about images
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
so i created 5 inner divs inside a containing div and i set the width and height of the inner divs based on the width and height of each images and this worked fine
Oh brother, div-itis galore. Put your navigation into a proper LIST, because that's what it really is and style the list using CSS. You should not be using just images for a menu unless you're going to be using some image-replacement method.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-16-2009, 03:34 PM Re: question about images
Ultra Talker

Posts: 254
Trades: 0
alright then thanks
sudhakararaog is offline
Reply With Quote
View Public Profile
 
Old 12-23-2009, 04:44 AM Re: question about images
Junior Talker

Posts: 2
Trades: 0
How Do you Stretch a Background Image in a Web PageI got the following question in a interview:
I am trying since months but I can't find a way to stretch background images in a web page.... What is the reason that it seems impossible to do? How to do
jsridhar is offline
Reply With Quote
View Public Profile
 
Old 12-23-2009, 05:01 AM Re: question about images
Ultra Talker

Posts: 254
Trades: 0
use repeat-x for x axis and repeat-y for y axis for the background image to repeat
sudhakararaog is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to question about images
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.67286 seconds with 12 queries