Loading...
 
Skip to main content

Features / Usability


Image layout with different monitor sizes..

Hey guys, I am building my home page to have images linking to articles on my website. www.playboxed.org.Question the problem I am facing is that my images are supposed to show up next to eachother. so on the site atm the GTA article image should show with the High Definition article next to it and underneath them the everyday shooter article image should show with the GT prologue article image next to it so that everything is in line. But when i resize the window or look at it on different monitors/screen resolutions it screws up the layout.

How can I fix this? i am thinking of writing a custom module and putting it in the wiki page. Any thoughts?

Hey Guys there may be many ways to solve this issue but I ended up creating a module with a width of 625 pixels and put my images in there so no matter what monitor size or how the window is resized it always maintains the form. 😀 😀

Looks good in Firefox, but only the first two images show in Opera and Internet Explorer 7. Maybe this is because the images are in a 625px-wide div with overflow:hidden set, and there is no break tag or other method to stop the third and fourth images from just lining up to the right of the second one; anyway that's the way these two browsers see it.

As for the divs themselves, you probably could have just used the DIV plugin to make a div of the right width. There's actually no need to use a module or make new class, as far as I can tell. This would simplify the code for the page.

Also, the site logo, being 1800 pixels wide, creates a big white space to the right of the page content, and a horizontal scrollbar. It would be better to use this image as the background for maybe div.siteheader (and give the div a height of 100px). Then the page would only be as wide as its normal content and only as much of the logo image would be displayed as is needed to fill the width of the page.

-- Gary - zukakakina.comQuestion


Sorry i've got

/**/


div align="left" height="400px"> img src="http://playboxed.org/img/tiki/tikilogo.png"> /div>

Hey Gary, I've fixed the images thing. I didn't know that IE and OPERA don't recognize the overflow: hidden tag. I added some breaks. I have also added the image to the site header field as a div but how do i set the div height?

I've got.



I know its wrong because it doesnt work 😑 Any ideas? I want the image to only span as long as the content.

Heh. The problem is that they do recognize the overflow:hidden property. That's why they hide what overflows. 😉 If you specify a width for a div, and overflow:hidden, naturally what goes beyond the width gets hidden. I'm not sure why Firefox wraps the line of images to keep them in the div, when there's no tag or anything to tell it to.

The siteheader div height can be set like div.siteheader (height: 100px) (or whatever the size is. Then don't use the image as a logo any more, so it doesn't cause the wide window. If you want the "logo" (which will actually be the background image) to still be a link to home, you can make a transparent gif that is the size of the logo text and indicate it as the Site Identity logo.

-- Gary


ahh ok, makes sense.. Where do I change div.siteheader code?