473,782 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Recreatinging a sliced image page with CSS

Hi,

I'm a relative newcomer to css although I really do believe in its
philosophy and power. I'm even currently teaching web authoring with css to
a group of beginners.

However, I trying to undo my bad html and css on my own pages and I'm
setting myself the challenge of recreating some of the pages with css.

http://www.wcgcamberwell.org.uk/

This link shows a set of images which was created with an image program
which sliced a large image and put the whole lot plus shim into a horrible
table. Ironically it looks fine in IE but it looks a real mess with Firefox.

My new page goes something like this.
The HTML goes like this:

<div id="container" >

<!-- Services button -->
<div id="services">< a href="services. html" target="_self"> <img
name="services" src="images/sitemap/services.gif" alt="services" border="0"
height="104" width="97"></a></div>

<!-- Worship button -->
<div id="worship">< a href="worship.h tml" target="_self"> <img name="Worship"
src="images/sitemap/Worship.gif" alt="Worship" border="0" height="104"
width="99"></a></div>

<!-- Prayer button -->
<div id="prayer"><a href="prayer.ht ml" target="_self"> <img name="Prayer"
src="images/sitemap/Prayer.gif" alt="Prayer" border="0" height="114"
width="87"></a></div>

<!-- Studies button -->
<div id="studies">< a href="studies.h tml" target="_self"> <img name="Studies"
src="images/sitemap/Studies.gif" alt="Studies" border="0" height="106"
width="92"></a></div>

<!-- WCG button -->
<div id="wcg"><a href="camberwel l.html" target="_self"> <img
name="GlobeCros s" src="images/sitemap/GlobeCross.gif" alt="GlobeCross "
border="0" height="139" width="140"></a></div>

<!-- People button -->
<div id="people"><a href="people.ht ml" target="_self"> <img name="People"
src="images/sitemap/People.gif" alt="People" border="0" height="113"
width="83"></a></div>

<!-- What's New button -->
<div id="whats_new"> <a href="whatsnew. html" target="_self"> <img name="What's
New" src="images/sitemap/WhatsNew.gif" alt="What's New" border="0"
height="105" width="138"></a></div>

<!-- Links button -->
<div id="links"><a href="links.htm l" target="_self"> <img name="Links"
src="images/sitemap/Links.gif" alt="Links" border="0" height="112"
width="80"></a></div>

<!-- Contacts button -->
<div id="contact">< a href="contact.h tml" target="_self"> <img name="Contacts"
src="images/sitemap/Contacts.gif" alt="Contacts" border="0" height="109"
width="143"></a></div>

The nearest I've got to what I want is using this css.

/* Sitemap Styles */
#container {
position: absolute;
width: 410px;
height: 410px;
margin-left: auto;
margin-right: auto;
left: 210px;
top: 33px;
/* border: 1px solid #000000;
*/
}

#services {
position: absolute;
left: 19px;
top: 1px;
width: 97px;
height: 104px;
}
#worship {
position: absolute;
left: 164px;
top: 1px;
width: 99px;
height: 104px;
}
#prayer {
position: absolute;
left: 300px;
top: 1px;
width: 87px;
height: 114px;

}
#studies {
position: absolute;
left: 20px;
top: 156px;
width: 92px;
height: 106px;
}
#wcg {
position: absolute;
left: 135px;
top: 138px;
width: 140px;
height: 139px;
}

#people {
position: absolute;
left: 300px;
top: 151px;
width: 83px;
height: 113px;
}
#whats_new {
position: absolute;
left: 0px;
top: 306px;
width: 138px;
height: 105px;
}

#links {
position: absolute;
left: 167px;
top: 298px;
width: 80px;
height: 112px;
}

#contact {
position: absolute;
left: 267px;
top: 304px;
width: 143px;
height: 109px;
}
</div>
But I want the whole grouping to stay in the centre of the page whatever the
width.

I also have another couple of lines of text to go underneath which are
currently underneath the images. I'm just tackling one thing at a time.

Can anyone help please?

Thanks

Geoff Stilwell
ge***@wcgcamber well.org.uk
Jan 28 '07 #1
3 4173
"George Smiley" <gd***@hhotmail .comwrote in message
news:Dq******** ************@fe 3.news.blueyond er.co.uk...
http://www.wcgcamberwell.org.uk/

This link shows a set of images which was created with an image program which sliced a
large image and put the whole lot plus shim into a horrible table. Ironically it looks
fine in IE but it looks a real mess with Firefox.
But I want the whole grouping to stay in the centre of the page whatever the width.

I also have another couple of lines of text to go underneath which are currently
underneath the images. I'm just tackling one thing at a time.

Can anyone help please?
Personally, I would toss this entire idea. A page *that* simple requires at best, one
container DIV (not a slew of them) with the IMGs in rows. Every place you need to start a
new row of images you could simply float the first one left. It appears your images are
transparent GIFs which makes that job that much easier as you do not have to re-edit
images.

Seriously, semantically you should avoid extraneous DIVs. Just try a search on Google for
DIVless or "design without divs."

-Lost
Jan 29 '07 #2
Thanks for the advice.

I couldn't get the images as they were to line up in rows with css so I took
the easy way out and resaved the images so they did fit and align properly
in a much simpler table without spacers.

thanks again.
"-Lost" <sp************ ****@REMOVEMEco mcast.netwrote in message
news:fs******** *************** *******@comcast .com...
"George Smiley" <gd***@hhotmail .comwrote in message
news:Dq******** ************@fe 3.news.blueyond er.co.uk...
>http://www.wcgcamberwell.org.uk/

This link shows a set of images which was created with an image program
which sliced a large image and put the whole lot plus shim into a
horrible table. Ironically it looks fine in IE but it looks a real mess
with Firefox.
>But I want the whole grouping to stay in the centre of the page whatever
the width.

I also have another couple of lines of text to go underneath which are
currently underneath the images. I'm just tackling one thing at a time.

Can anyone help please?

Personally, I would toss this entire idea. A page *that* simple requires
at best, one container DIV (not a slew of them) with the IMGs in rows.
Every place you need to start a new row of images you could simply float
the first one left. It appears your images are transparent GIFs which
makes that job that much easier as you do not have to re-edit images.

Seriously, semantically you should avoid extraneous DIVs. Just try a
search on Google for DIVless or "design without divs."

-Lost

Jan 30 '07 #3
"George Smiley" <gd***@hhotmail .comwrote in message
news:c_******** *************@f e1.news.blueyon der.co.uk...
Thanks for the advice.

I couldn't get the images as they were to line up in rows with css so I took the easy
way out and resaved the images so they did fit and align properly in a much simpler
table without spacers.

thanks again.
I threw together an example a few days ago and then forgot about this thread.

Do you have a valid e-mail address? Your current one does not exist.

-Lost
Feb 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1811
by: Ohaya | last post by:
Hi, We've been having a problem with one particular page that has a button on it, and a "tall" image (top-to-bottom). The button calls some simple Javascript to print the frame in which the image is located, and what is happening in the field is that the image only gets partly printed. Only the first page gets printed, and the bottom of the image, which should get printed on a 2nd page, is not printed. Also, the bottom of the first...
4
3203
by: xtort | last post by:
My question is: If you create a template in Photoshop, slice it in ImageReady, using the CSS output option(under the "slices" menu in "output--options"), and then use the CSS output for a template(which will all be absolute-postioned DIVs)--would there be any foreseeable drawbacks to this? Put another (simpler) way: are there drawbacks to positioning everything on the page with absolute references alone?
1
1296
by: Steve | last post by:
Is there any way to load an image from a resource file and show it on the web page. I think I can do it with an image that has for source a second web page that output the data of the image, but I want to use only 1 web page.. please help !
4
11744
by: Detlef Huettenbach | last post by:
I was trying to convert a Windows Forms prototype application to an ASP.NET solution that makes use of loading data streams into the Image Web/Windows control. For WinForms no problem. However in ASP.NET, the image control does not display tiffs,pngs,.. still it does display gif-streams. Memory stream writing into a gif- stream of the tiff and other streams likewise fails, although the streams seem to be filled correctly. On top of that,...
4
1962
by: Marc Pelletier | last post by:
Hello, I have a class (TideClass) which creates a bitmap image as one of its functions. I want to create a page which has this image embedded amongst some text. I know that I have to stream the image back from a separate aspx page. I have therefore created a page Day1.aspx which gets the instance of tide from the context handler, calls the DrawChart function and streams it back.
3
8462
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to crop a peice of an ASP.Net Image, allowing the user to zoom in on only a section of the picture?? any help would be appreciated!! thanks -- AdamPC@hotmail.com
4
2756
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. It should put a blue and yellow box on the page with "This is a test" as part of the picture. But what I get is a broken Gif. The other problem is that I can't view the source???? The view source is disabled for this page. What causes this?
5
2828
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to look for why it is slowing down. I thought about the DB first and added NOLOCK to a couple of stored procedures that were being run, but with no effect. Can someone offer some tips on where to start looking or how I can begin to diagnose this...
3
1464
by: Adrian | last post by:
In the following code example I am trying to create a generic interface for a bunch of objects. Each concrete type is stored in its own container and the a container of pointer's to base is used so I can access all at once. I created a specialization of the template for Fruit *'s so that it returns a reference and the code looks the same as when accessing a concrete type. I've managed to get everything working so far except accessing all...
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10143
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9939
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5507
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.