473,804 Members | 3,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setting the margin in one cell

I have one cell (<td>) that I want to have a margin in to move everything
away from the left border by about 10 px.

The only way I can seem to do it is to add cellspacing in each of the
elements in the Cell (2 tables and button). I wanted to set it in just one
place. "<td style=margin-left:10>" doesn't do anything.

Is there a way to do this?

Thanks,

Tom.
Nov 18 '05 #1
4 1719
Tom,
There's an easier way. You need margins, but can't get them on a
cell since a cell doesn't have a margin property. You can't set the
cellspacing or padding because it does it to every cell. So, the next best
thing is to find a way that you're only dealing with one cell and don't have
to worry about the rest. Put a one celled table within that cell then you
can set the padding of that table to what you need and place your content in
that table, or have two cells, one that has a width of 10 (with a spacer
image in it to hold the width at 10), and the other uses the rest.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"tshad" <ts**********@f tsolutions.com> wrote in message
news:uJ******** ******@TK2MSFTN GP14.phx.gbl...
I have one cell (<td>) that I want to have a margin in to move everything
away from the left border by about 10 px.

The only way I can seem to do it is to add cellspacing in each of the
elements in the Cell (2 tables and button). I wanted to set it in just
one place. "<td style=margin-left:10>" doesn't do anything.

Is there a way to do this?

Thanks,

Tom.

Nov 18 '05 #2
"Mark Fitzpatrick" <ma******@fitzm e.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Tom,
There's an easier way. You need margins, but can't get them on a
cell since a cell doesn't have a margin property. You can't set the
cellspacing or padding because it does it to every cell. So, the next best
thing is to find a way that you're only dealing with one cell and don't
have to worry about the rest. Put a one celled table within that cell then
you can set the padding of that table to what you need and place your
content in that table, or have two cells, one that has a width of 10 (with
a spacer image in it to hold the width at 10), and the other uses the
rest.
But I already have lots of tables in the page. Is that going to be "table
overload" for just one cell?

Also, how do I set up a space image? Is that just a transparent image?

Thanks,

Tom.
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"tshad" <ts**********@f tsolutions.com> wrote in message
news:uJ******** ******@TK2MSFTN GP14.phx.gbl...
I have one cell (<td>) that I want to have a margin in to move everything
away from the left border by about 10 px.

The only way I can seem to do it is to add cellspacing in each of the
elements in the Cell (2 tables and button). I wanted to set it in just
one place. "<td style=margin-left:10>" doesn't do anything.

Is there a way to do this?

Thanks,

Tom.


Nov 18 '05 #3
td's do not have a margin, thats handled by the cellspacing. you want to set
the padding

<td style="padding-left:10">

-- bruce (sqlwork.com)
"tshad" <ts**********@f tsolutions.com> wrote in message
news:uJ******** ******@TK2MSFTN GP14.phx.gbl...
| I have one cell (<td>) that I want to have a margin in to move everything
| away from the left border by about 10 px.
|
| The only way I can seem to do it is to add cellspacing in each of the
| elements in the Cell (2 tables and button). I wanted to set it in just
one
| place. "<td style=margin-left:10>" doesn't do anything.
|
| Is there a way to do this?
|
| Thanks,
|
| Tom.
|
|
Nov 18 '05 #4
"bruce barker" <no***********@ safeco.com> wrote in message
news:eo******** ******@TK2MSFTN GP12.phx.gbl...
td's do not have a margin, thats handled by the cellspacing. you want to
set
the padding

<td style="padding-left:10">
That was what I was looking for.

I assume cellpadding and padding is the same (except that padding you can
give it a direction). One you use "style=" and the other you just put into
the tag.

Thanks,

Tom
-- bruce (sqlwork.com)
"tshad" <ts**********@f tsolutions.com> wrote in message
news:uJ******** ******@TK2MSFTN GP14.phx.gbl...
| I have one cell (<td>) that I want to have a margin in to move
everything
| away from the left border by about 10 px.
|
| The only way I can seem to do it is to add cellspacing in each of the
| elements in the Cell (2 tables and button). I wanted to set it in just
one
| place. "<td style=margin-left:10>" doesn't do anything.
|
| Is there a way to do this?
|
| Thanks,
|
| Tom.
|
|

Nov 18 '05 #5

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

Similar topics

4
1797
by: Gary Hasler | last post by:
I have a full page of thumbnails linked to home plan pages. I'm adding a mouseover/mouseout effect to the table cells, plus a onclick event to permanently set the cell background to indicate the user's latest choice. This is in addition to the normal A HREF link, and seems to work fine. I set up anchors (A name="") on the thumbnail page, and the "Back to Plans" link from the home plan page contains a hash (#) to scroll the page down and...
2
4863
by: Paul Taylor | last post by:
On my pages I have set the Cell Image (strip_19.gif) from my Images folder as <TD ROWSPAN=2 BACKGROUND="../images/strip_19.gif" WIDTH=19> <P><FONT COLOR="#FFFFFF">|</FONT></P> </TD> That all works fine. However I need to host a "transaction page" and the image on a
3
2178
by: Rob Meade | last post by:
Hi all, I need to set some table cells which I am adding from code. I am using; cell.backcolor = cell.backcolor.white for example to set it to white - this is all very well and good for a 'named' colour - but how do I set this for #d4c5db as an example? I have
2
2325
by: VB Programmer | last post by:
In my Calendar1_DayRender event I'm setting the e.cell.text property equal to a db value. But, the day cell loses it's "clickability" as well as the day #, like the other non-modified day/cells have. How do I preserve this?
1
1744
by: Scott Meddows | last post by:
How do I set row x and column y active in a datagrid? Thanks Scott
1
3099
by: Lonewolf | last post by:
hi all, just want to find out if it is possible to set the gridline of individual cell in a listview using C#. Reason for this is I need to have a listview which has fixed number of columns and rows, but individual cell can span columns, though not row. As such, I need to be able to set the gridline of individual cell, something like how u set the table grid for individual cell in MS Word's table. I don't know what event in the custom...
0
952
by: K B | last post by:
Hi, I would like to set only certain rows on a DetailsView to readonly or other properties conditionally...is there any way to do this? I've searched with no luck. Thanks, Kit p.s. I posted this yesterday but don't see it on the site, so I've
0
1610
by: Jerry | last post by:
I have an application that is trying to export multiple datasets to and excel workbook in different worksheets. I have gotten the export to work except for string fields that happen to be numbers being converted to a number field. For example one value in a string field is "0008" and when I export into excel it turns into 8. I know when I manually import a csv file into excel I have to option to say what type of field a specific column...
1
1454
by: brixton | last post by:
Hello, probably a simple problem but I can't find how to solve it so here we go... Instead of using a table I'm using lists and CSS for my layout. How do I set the "width" for my list item (which would be a table cell, had I used tables)? I get it to work fine with IE (the width:value works there) but not with Mozilla. Thanks in advance.
27
109408
by: geniet | last post by:
Hello all of you, I have some problem in setting cells values (or fromat or...) in my Excel spreadsheet using a VB statement like within my Module: Range("C1").Value = 20 I have this in a function. If I am in debug mode and have a breakpoint at this line, I can see when hovering my mouse over "Range("C1").Value" the actual value in that cell (in my case 30), but when I want to step to the next statement, the VB programs ends (due to some...
0
9706
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...
1
10320
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
10077
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
7620
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
6853
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();...
0
5521
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...
1
4299
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
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
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.