It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Picture relocation

Picture relocation

Postby ramnosity on Tue Nov 25, 2008 2:23 am

So I code my websites all by typing myself and they look ok but when I view them with a lower screen resolution or if I make the window smaller all the images and pictures get relocated down the page. Instead of staying where they are so you can just scroll over they move down below each other and the text also does the same thing. Here's an example.

This is one of my websites. All the images line up but if you grab the window and make it smaller all the images re-align vertically. www.kmpfilms.com

This is a professional website. If you make the screen smaller here it just lets you see less of the page and you have to scroll over. www.indymogul.com

Can somebody help?
Tenbucktunes Music for ten bucks or less
Image
User avatar
ramnosity
100+ Club
 
Posts: 195
Joined: Sat Feb 10, 2007 6:18 am
Location: at my computer

Postby rangana on Tue Nov 25, 2008 3:50 am

Set a fixed with on those elements.

In that way, it will not be affected by the browser's width when adjusted.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Postby ramnosity on Wed Nov 26, 2008 1:13 am

What do you mean. It's not about the pictures being risized. They are being moved down the page.
Tenbucktunes Music for ten bucks or less
Image
User avatar
ramnosity
100+ Club
 
Posts: 195
Joined: Sat Feb 10, 2007 6:18 am
Location: at my computer

Postby rangana on Wed Nov 26, 2008 1:58 am

I mean to set a fixed width on the element that contains your images.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Picture relocation

Postby ramnosity on Tue Dec 02, 2008 10:46 pm

So would I use a Div or Span? and then link that into the CSS sheet and set a width?
Tenbucktunes Music for ten bucks or less
Image
User avatar
ramnosity
100+ Club
 
Posts: 195
Joined: Sat Feb 10, 2007 6:18 am
Location: at my computer

Re: Picture relocation

Postby rangana on Wed Dec 03, 2008 3:31 am

You cannot set a "width" on the span element since it's inline. Div will do.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines

Re: Picture relocation

Postby ramnosity on Wed Dec 03, 2008 4:16 am

Actually I've been playing with it for a while and I used span and set a width in a CSS page and it all worked fine. Thanks for your help.
Tenbucktunes Music for ten bucks or less
Image
User avatar
ramnosity
100+ Club
 
Posts: 195
Joined: Sat Feb 10, 2007 6:18 am
Location: at my computer

Re: Picture relocation

Postby rangana on Wed Dec 03, 2008 4:42 am

That's interesting to note that "width" works on span element.

Could you please show the code you used.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 6 guests