473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

images via dotnet and css

i have a datalist of images produced via .NET and I am struggling to
get them looking right.

www.2bytes.co.uk/stest/default.aspx shows them inside a div which has a
border and is display:inline however this method (which is ok in IE6)
does not show correctly in Firefox - maybe someone can explain.

www.2bytes.co.uk/stest/default2.aspx shows them inside a div which is
floated left - this is ok but the image is not central within the box
which I would like it to be (bear in mind the dimensions of the image
change as I swap the images so a simple padding-top is probably not
going to work - or is it?).

www.2bytes.co.uk/stest/default3.aspx shows them just by themselves with
a border round the images which centralises them nicely but I would
prefer the standard sized box instead of the changes that occur with
this method.

Can anyone suggest a method to get the best of default2 and default3?

my css is at www.2bytes.co.uk/stest/styles.css
www.2bytes.co.uk/stest/styles2.css
www.2bytes.co.uk/stest/styles3.css

any help much appreciated - i'm sure this css thing will be great once
i can figure out the way these browsers work...

Phil

Feb 2 '06 #1
2 1508
de**@2bytes.co.uk wrote:
www.2bytes.co.uk/stest/default.aspx shows them inside a div which has a
border and is display:inline however this method (which is ok in IE6)
does not show correctly in Firefox - maybe someone can explain.
You've got a number of machine detectable syntax errors. Perhaps Microsoft's
browser is just better at correcting for errors in Microsoft's HTML
generating tools?

http://validator.w3.org/check?verbos...t/default.aspx

Since your stylesheet is on your localhost and not mine, it is a somewhat
harder to identify problems with it. I suggest you fix your HTML to get rid
of the syntax errors (moving away from XHTML would probably be wise while
you are at it), and point to an online version of your stylesheet.
my css is at www.2bytes.co.uk/stest/styles.css


But with no web page to demo it, debugging it is rather more work than a lot
of people are willing to do for free. You have more syntax errors there by
the way:
http://jigsaw.w3.org/css-validator/v...est/styles.css
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 2 '06 #2
thanks for this. Sorry about the validation check. I had done this once
before but unfortunately I'm using the first version of Visual Studio
..NET which puts in a lot of incorrect syntax automatically and then
even when I fix it, changes it back again!

However there were also some of my own errors in there. I have fixed
www.2bytes.co.uk/stest/default4.aspx which now passes validation and
the stylesheet also passes. Hey I've even almost got it to work! But I
can't get the images to center vertically - any ideas?

thanks again

Feb 3 '06 #3

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

Similar topics

4
by: etantonio | last post by:
Good morning, I've a web page where I have put about 30 little images (4kb each) coming from other sites, the problem is that not all are showed and the images showed are random, I don't know if...
1
by: Mark Doggett | last post by:
Hi I have a listview control with four columns. The problem I have is that the second column needs to display an image but as it is a subitem this doesn't appear to be able to be done. Does...
2
by: Jurjen de Groot | last post by:
The IE webControls come with standard graphics for the treeview amongst other things, does anyone know of other sets of images so the treeview doesn't look so much like the Windows Explorer tree...
3
by: Arun | last post by:
Hi, I have simple question to ask. How to write multiple Binary files to the Browser using Asp.Net and Visual C#.net I have seen examples where single binary file is written to browser. ...
2
by: Little Man | last post by:
how can i print images selected from listview control by using vb.net?? any samples? thanks
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
1
by: NutsAboutVB | last post by:
Hello, I am a VB.NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to...
1
by: Jeffrey Walton | last post by:
Hi All, I have an array of 16x16 bitmaps (60 total). I've tried adding the array to the ImageList with the Add method, but the TreeView paints as if no BMP is present. The problem is the...
1
by: Mark | last post by:
I am trying to show many Images in a Listview controls with size(100,100). But some of the images sizes are big, like width=238 and height 50. These images does not appear proper in the listview...
3
by: Samuel | last post by:
Hi I added a Resource file to my application then I added 2 images to this file I made sure to set the set the Build Option of the images to 'Embedded Resource' But I still can't find them...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.