Hello all,
I made a nice frame around an image, using padding and border like
this:
<img style="padding: 5px; margin: 5px; border: 1px solid gray"
src="./stuff/gde.gif" alt="Gewerkscha ft der Eisenbahner" align="right"
border="0" width="201" height="43">
But Opera 7.2 squishes the image. I think it's because I've sized the
image properly and Opera is trying to squeeze the padding into the
space taken by the image.
Safari, Mozilla/Camino, MacMSIE5 and Opera 6 do not do this and it
comes across as being a bug or at least counterintuitiv e.
I would love to hear your thoughts on this.
The page is here and it validates: http://eriksrailnews.com/
Thanks!
Erik Sandblom 4 1973
"Erik Sandblom" <er***@operamai l.com> wrote in message
news:5c******** *************** ***@posting.goo gle.com... Hello all,
I made a nice frame around an image, using padding and border like this:
<img style="padding: 5px; margin: 5px; border: 1px solid gray" src="./stuff/gde.gif" alt="Gewerkscha ft der Eisenbahner" align="right" border="0" width="201" height="43">
Are not the 'border: solid 1px gray' and...
'border="0"' contradictory?
(and yes, I am asking, rather than being sarcastic)
--
Andrew Thompson http://www.AThompson.info/ http://www.PhySci.org/ http://www.1point1C.org/
"Andrew Thompson" <an******@bigNO SPAMpond.com> wrote in message news:<LU******* ************@ne ws-server.bigpond. net.au>... "Erik Sandblom" <er***@operamai l.com> wrote in message news:5c******** *************** ***@posting.goo gle.com... Hello all,
I made a nice frame around an image, using padding and border like this:
<img style="padding: 5px; margin: 5px; border: 1px solid gray" src="./stuff/gde.gif" alt="Gewerkscha ft der Eisenbahner" align="right" border="0" width="201" height="43">
Are not the 'border: solid 1px gray' and... 'border="0"' contradictory? (and yes, I am asking, rather than being sarcastic)
I don't know either, but removing that part doesn't change anything in Opera 7.2.
Erik Sandblom
On 4 Nov 2003 06:22:37 -0800, er***@operamail .com (Erik Sandblom) wrote: I made a nice frame around an image, using padding and border like this:
<img style="padding: 5px; margin: 5px; border: 1px solid gray" src="./stuff/gde.gif" alt="Gewerkscha ft der Eisenbahner" align="right" border="0" width="201" height="43">
But Opera 7.2 squishes the image. I think it's because I've sized the image properly and Opera is trying to squeeze the padding into the space taken by the image.
Safari, Mozilla/Camino, MacMSIE5 and Opera 6 do not do this and it comes across as being a bug or at least counterintuitiv e.
I would love to hear your thoughts on this.
Well I *think* you're getting bitten by the problem that it isn't always
very well defined how HTML and CSS cohabit. This use of the width and
height attributes is an exceptional case where you want to use HTML
attributes to define sizes, but I don't think it's clearly defined
whether they should then be used as the CSS width/height properties for
the box in question. Apparently Opera thinks so, and the other browsers
don't. Not actually a bug AFAICT.
Sticking a DIV around your image should get it working in all browsers.
--
Stephen Poley http://www.xs4all.nl/~sbpoley/webmatters/
In article <5c************ **************@ posting.google. com>, er***@operamail .com (Erik Sandblom) wrote: But Opera 7.2 squishes the image. I think it's because I've sized the image properly and Opera is trying to squeeze the padding into the space taken by the image.
The problem would make sense in the quirks mode where padding intrudes
width. Your page has a doctype that is supposed to activate the
standards mode, though.
--
Henri Sivonen hs******@iki.fi http://iki.fi/hsivonen/
Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thomas Mlynarczyk |
last post by:
Hello,
I want to style an <a> element to have a special padding on "hover", like
a {padding: 3px 5px 2px 4px;}
a:hover {padding: 2px 4px 3px 5px;}
No problem for Mozilla. Opera 7, however, behaves strangely and does not
apply the background color to the padded area. And IE5 seems to ignore the
hover-padding.
|
by: delerious |
last post by:
I'm trying to add some simple padding to an IMG by using a padding-right
style, but it doesn't work in IE. Works fine in Mozilla and Opera, though.
Here's a link to a page which displays this IE problem:
http://home.comcast.net/~delerious1/index12.html
I do know that I can solve the problem in IE by changing padding-right to
margin-right, but then the links cannot be clicked when the mouse is over that
margin area. So I would...
|
by: Harlan Messinger |
last post by:
What is *supposed* to be the way to specify the horizontal offset of (a) the
list item's marker and (b) the list item's content? In particular, see
http://mywebpages.comcast.net/hmessinger/default.html
which validates under Strict. Under IE6, Opera, and Firebird, the markers
are indented as one would expect the default to be. What if I want them
moved over to the left edge of the list? On the above page, there is no
margin-left for...
|
by: Gustaf Liljegren |
last post by:
I continued on the example shown earlier today:
http://gusgus.cn/test/index.html
Now I get some unwanted space in Firefox (the red space just below the
first image) which doesn't appear in IE6. I've double-checked the CSS
for any padding or margings than may cause it, but have found none. How
can I remove it?
Thanks,
|
by: jmm-list-gn |
last post by:
Hello,
<http://www.asaom.edu>
There are some curious spacing issues with the top bar (gray) and the
main navigation bar.
The most significant is how the nav bar looks in Opera v6 (win2k): the
text portion is has extra space at the top that I cannot remove. As a
result the text portion is pushed below the background bar by a few
pixels. This does not occur in Mozilla/Firefox, or IE6. (I have ordered
Opera v7.) Is this a known issue?
The...
| |
by: D. Alvarado |
last post by:
Hello,
I am trying to open a window containing an image and I would like
the image to be flush against the window -- i.e. have no padding or
border. Can I make this happen with a single call to a window.open
function? I would prefer not to create a separate HTML page. So far
all I have is the basic
var cwin = window.open('images/KJV-THANKS.gif',
'Thanks', 'width=243,height=420,');
cwin.focus();
|
by: Remi Villatel |
last post by:
Hi there,
I have following CSS definitions:
div.limits { margin: 0 20px 0 20px; }
div.halfleft {
float: left;
left: 0;
width: 50%;
|
by: phil-news-nospam |
last post by:
Here is a simpler (no drop shadows) example of the padding bug I see:
http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html
So far I find nothing in the CSS2 document that says I should get this
kind of inconsistent result.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
|
by: Alan Silver |
last post by:
Hello,
In my (seemingly) endless quest to understand CSS, I have yet another
problem. Please look at http://www.kidsinaction.org.uk/ph/x.html in
Opera, where you will see it how I expected. If you look at it in IE (6
or 7), you find it also looks fine, except for the top margin missing
from the links across the top of the page. That's not the main issue
here, but any pointers as to why it doesn't show them would be
appreciated.
|
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...
|
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...
| |
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |