473,800 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Padding between Flash and Image

Hello

Here is my code:

<div>
<span>
... Flash object...
</span>
<span>
<img src="a.gif">
</span>
<span>
<table>
<tr>
<td>asdasd</td>
</tr>
</table>
</span>
</div>

All the above divs and spans have been assigned the following using a CSS

margin:0px 0px 0px 0px
padding:0px 0px 0px 0px
border-width:0px;

Still there is a padding between the flash and the image and the table. Can
someone point where I am going wrong?

Thank You
Jul 20 '05 #1
9 4208

"Paul McKenna" <pm**********@y ahoo.com> wrote in message
news:f7******** *************** ***@posting.goo gle.com...
Hello

Here is my code:

<div>
<span>
... Flash object...
</span>
<span>
<img src="a.gif">
</span>
<span>
<table>
<tr>
<td>asdasd</td>
</tr>
</table>
</span>
</div>

All the above divs and spans have been assigned the following using a CSS

margin:0px 0px 0px 0px
padding:0px 0px 0px 0px
border-width:0px;

Still there is a padding between the flash and the image and the table. Can someone point where I am going wrong?


If you have the following in your web page, on two lines as shown, what
would you expect to see?

<p>Today is the first day
of the rest of your life.</p>

Hopefully you'd expect to see a space between "day" and "of".

Now compare this code with yours.

Jul 20 '05 #2
On 7 Jun 2004 13:04:28 -0700, Paul McKenna <pm**********@y ahoo.com> wrote:
Hello

Here is my code:

<div>
<span>
... Flash object...
</span>
<span>
<img src="a.gif">
</span>
<span>
<table>
<tr>
<td>asdasd</td>
</tr>
</table>
</span>
</div>
Span is an inline element, so it cannot contain block level elements like
table. I'm not sure if any browsers have trouble with inline block
elements like object within inline elements.
All the above divs and spans have been assigned the following using a CSS

margin:0px 0px 0px 0px
padding:0px 0px 0px 0px
border-width:0px;
No need to set units for 0 distances.

margin: 0; padding: 0, border-width: 0;
Still there is a padding between the flash and the image and the table.
Can
someone point where I am going wrong?


I don't see why you even need spans here. Eliminate them, or replace with
divs.
Jul 20 '05 #3
On 7 Jun 2004 13:04:28 -0700, pm**********@ya hoo.com (Paul McKenna)
wrote:
Hello
Here is my code:
<div> ... etc ...


If I may be so blunt as to try to set your interest to this little nifty
on-line tool?

http://jigsaw.w3.org/css-validator/

--
Rex
Jul 20 '05 #4
"Harlan Messinger" <h.*********@co mcast.net> wrote in message news:<2i******* *****@uni-berlin.de>...
If you have the following in your web page, on two lines as shown, what
would you expect to see?

<p>Today is the first day
of the rest of your life.</p>

Hopefully you'd expect to see a space between "day" and "of".

Now compare this code with yours.


I didnt quite get what you meant? Could you please elaborate...
Jul 20 '05 #5
pm**********@ya hoo.com (Paul McKenna) wrote:
"Harlan Messinger" <h.*********@co mcast.net> wrote in message news:<2i******* *****@uni-berlin.de>...
If you have the following in your web page, on two lines as shown, what
would you expect to see?

<p>Today is the first day
of the rest of your life.</p>

Hopefully you'd expect to see a space between "day" and "of".

Now compare this code with yours.


I didnt quite get what you meant? Could you please elaborate...


Your spans are all separated by line breaks, just like my sample code
above. You're complaining that there's a space between your spans. If
you expect to see such a space in my example, then you should expect
to see such a space in yours, for the same reason. If you're surprised
to see a space on your page, wouldn't you expect my code to display as

Today is the first dayof the rest of your life.

?

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ter le premier point de mon adresse de courriel.
Jul 20 '05 #6
Actually, I wasn't even reading your code properly. It isn't valid in the
first place. SPAN tags can only go around inline code, not around blocks. If
your browser is accepting the code and displaying the page, then it's
probably displaying the blocks vertically as though the SPAN tags weren't
there, and you're talking about *vertical* spacing. (I was talking about
horizontal spacing.) But there's no point in my taking time guessing what
your browser is doing with invalid code. Make it valid first, then see what
happens.

Jul 20 '05 #7
"Harlan Messinger" <h.*********@co mcast.net> wrote in message news:<2i******* *****@uni-berlin.de>...
Make it valid first, then see what
happens.


It is valid, the CSS validator found no fault with the CSS. However
the html portion did have the error as pointed out. I have rectified
it and got the appropriate layout. Thanks to everyone for helping out
Jul 20 '05 #8
pm**********@ya hoo.com (Paul McKenna) wrote:
"Harlan Messinger" <h.*********@co mcast.net> wrote in message news:<2i******* *****@uni-berlin.de>...
Make it valid first, then see what
happens.
It is valid, the CSS validator found no fault with the CSS.


Since I was talking about your HTML and not your CSS, what the CSS
validator found is irrelevant.
However
the html portion did have the error as pointed out.
In other words, it was invalid, as I said. So why did you bring up the
CSS validator?
I have rectified
it and got the appropriate layout. Thanks to everyone for helping out

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ter le premier point de mon adresse de courriel.
Jul 20 '05 #9
On 9 Jun 2004 19:33:02 -0700, Paul McKenna <pm**********@y ahoo.com> wrote:
"Harlan Messinger" <h.*********@co mcast.net> wrote in message
news:<2i******* *****@uni-berlin.de>...
Make it valid first, then see what
happens.


It is valid, the CSS validator found no fault with the CSS. However
the html portion did have the error as pointed out. I have rectified
it and got the appropriate layout. Thanks to everyone for helping out


If the HTML is not valid, the CSS is immaterial. Always, always, get the
HTML valid first before even worrying about the CSS.
Jul 20 '05 #10

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

Similar topics

4
1973
by: Erik Sandblom | last post by:
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="Gewerkschaft 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
5
1605
by: Trapulo | last post by:
Hi, I've a big trouble with an asp.net page. Basically, the page has an swf that starts and downloads some data from an other asp.net page. The application works well on my testing IIS 6, but when I upload it on production server (an other IIS6), it cannot download anything. The application is in ASP.NET 2.0. The page with swf, the swf, and the page that renders data (as xml) are on the same domain and same web site. The site has form...
9
4825
by: edware | last post by:
I want to read header data from a image file, and I have a struct that represent this header. But it seems like my compiler pads the data, resulting that my fread() call won't put the right things in the right place. The struct starts like this: struct header { char magic; /* 2 bytes */
1
4160
by: pmm | last post by:
hi I am repeating my post here plz excuse i am trying out a UDP packet transfer between a windows machine and a linux I created a structure on both sides (ie on linux and on windows) and I sent using UDP but on the receiving side when I am trying to reform the packet back into structure tis giving me different outputs I assume it is the problem of structure padding I even used pragma pack (1) but still it is not working out for me...
1
1864
by: amit | last post by:
Hello, I saw on an article that you can capture an image like: ****************** from here ******************* Consider the following HTML definition: <IMG SRC="anything.gif" NAME="anything" HEIGHT="100" WIDTH="100">
11
2470
by: john_aspinall | last post by:
I want to put a simple padding on the right hand side of my text container to stop the text from overflowing out of the box. Ive added a padding-right rule and it refusing to recognise it in either IE or Firefox. Ive done exactly the same with the left padding and thats worked fine. Whats the crack??? http://www.ainewmedia.co.uk/css_page.htm #bodyContent { font-family:Verdana, Arial, Helvetica, sans-serif;
12
22383
by: mi0sis | last post by:
Right now I am currently using this: ------------------------------------------------------------ .div0 { background-image:url(http://www.rubnip.com/Pictures/topback.gif); background-position:center center; background-repeat:no-repeat; background-attachent:fixed; background-color:black; color:FFFFFF; border:0px solid; border-color:grey;
8
5913
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
5
3186
by: shapper | last post by:
Hello, I always use EM for text size, letter spacing and line heights. For DIV widths I usually use PIXELS if fixed width web site and PERCENT if fluid layout web site. I think in both cases I am doing the right thing ... I think. But what unit should I use for padding and margin? EM? PIXEL?
0
9689
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, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9550
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,...
1
10248
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
9085
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 projectplanning, coding, testing, and deploymentwithout 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...
1
7573
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
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4148
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
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
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.