473,587 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to add space between table and page edge?

1 New Member
I made the page and table in it in Wordpress.
The page style is "full width page".
The table i made has no spaces between left side and right side of page.
How can i add spaces?

Expand|Select|Wrap|Line Numbers
  1. <div style="align: center;">[spacer height="20px"]
  2. <table id="center-table" style="height: 90%; width: 100%; border-collapse: collapse">
  3. <tbody>
  4. <tr>
  5. <td colspan="2">
  6. <p style="color: brown; text-align: center;">UW VAKANTIEPERIODE</p>
  7. </td>
  8. <td colspan="2">
  9. <p style="color: brown; text-align: center;">UW REISGEZELSCHAP</p>
  10. </td>
  11. </tr>
  12. <tr>
  13. <td width="300px">
  14. <p style="color: white; text-align: center;">Aankomstdatum</p>
  15. </td>
  16. <td style="text-align: center;" width="300px">
  17. <p style="color: white; text-align: center;">Luchthaven</p>
  18. </td>
  19. <td style="text-align: center;" width="300px">
  20. <p style="color: white; text-align: center;">Aantal personen&gt;16jaar</p>
  21. </td>
  22. <td width="300px">
  23. <p style="color: white; text-align: center;">Aantal personen 3 - 16 jaar</p>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td width="300px"><input type="date" width="200px" /></td>
  28. <td width="300px"><select name="vehicle_on">
  29. <option value="aero">vliegtuig</option>
  30. <option value="train">trein</option>
  31. <option value="car">auto</option>
  32. </select></td>
  33. <td width="300px"><input type="number" /></td>
  34. <td width="300px"><input type="number" /></td>
  35. </tr>
  36. <tr>
  37. <td width="300px">
  38. <p style="color: white; text-align: center;">Vertrekdatum</p>
  39. </td>
  40. <td width="300px">
  41. <p style="color: white; text-align: center;">Luchthaven</p>
  42. </td>
  43. <td width="300px">
  44. <p style="color: white; text-align: center;">Aantal personen&lt;3(reizen GRATIS meet)</p>
  45. </td>
  46. <td rowspan="2"><input style="font-color: white;" type="checkbox" />Het gehele reisgezeischap samen in een kamer of appartement.</td>
  47. </tr>
  48. <tr>
  49. <td width="300px"><input type="date" width="200px" /></td>
  50. <td width="300px"><select name="vehicle_off">
  51. <option value="aero">vliegtuig</option>
  52. <option value="train">trein</option>
  53. <option value="car">auto</option>
  54. </select></td>
  55. <td width="300px"><input type="number" /></td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. [spacer height="20px"]
  60.  
  61. </div>
  62.  
my creation table code like this.
This code is written in Visual Editor of Wordpress.
Nov 10 '15 #1
1 6644
Toxicous8
57 New Member
Why did you make the table's width 100%.You can also use css to adjust position and width adjustment.If you have no idea on css, go to tutorials point and download the pdf format of cds tutorial.
Nov 19 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
10393
by: groups2 | last post by:
On this page:http://reenie.org/test/testmargin.php There is a gap between the table cell and the edge of the page. How do I get rid of it ? <html cellpadding='0' cellspacing='0' border='0'> <head> <style> body{ margin:0; padding:0 } ..oc{border:solid 1px; margin:0;} </style>
2
1763
by: James A. Donald | last post by:
in a web page http://jim.com/econ/chap01p1.html I want the first link, pointing to the previous page in the presentation to line up with left hand edge of the page, and the last link, pointing to the next page in the presentation, to line up with the right hand edge of the page, where the problem is complicated by the fact that the links...
0
2677
by: GB | last post by:
The main and index table space have page sizes of 8k The long data table space has page size of 4k The page size of the temporary table is 4k REORG TABLE USERBLAH.MYTABLE USE TEMPTBS; When I try to run a reorg on my table I get following errors:
4
3050
by: chettiar | last post by:
Hi, I am wanting to find out the size of a table for which I am using the following query: select c.card * b.columnlength from syscat.tables c, (select sum(a.avgcollen) as columnlength from syscat.columns a where a.tabname = <colname>) b where c.tabname = <colname> and c.tabschema = <schemaname>;
5
2185
by: vMike | last post by:
Is there any benefit to stripping all the space from the page before rendering by overriding the page render and using the htmltextwriter and stringbuilder to strip linefeeds, tabs and extra space etc. I have noticed that may site's source code is like this. Is this because it is better for the browser or harder for someone to be able to read...
1
2216
by: Amar | last post by:
I have a web form with several fields. Depending on user selection in one combo box, i populate a text box and a check box in one line. For example if the user selects 2 years, then i show the user two lines with each line containing 1 text box and 1 check box. I have already put in 10 lines, using ,<tr> in a table, from which i display only...
10
2079
by: Phil Stanton | last post by:
I have a table of SpaceAreas eg Food Store, Garden Shed etc with the first and last bin for each Space Area defined. eg Food Store First Space 1, last space 26 and Gargen Shed First space 1, last Space 50. SpaceAreas Table is SpaceAreaID Auto SpaceAreaDesc Text FirstSpace Integer LastSpace Integer I have a...
3
1512
by: LakshmiAlagappan | last post by:
Hi.. can anyone reply to this? will two tables in a same database share the same page? or like for a table, pages are reserved and no other table can use it? what is the default setup, will it allow two table to share the same page?
3
2021
by: torweb | last post by:
I'd like to have a table at the top of my screen that's filled with a color, which will reach from end to end of the monitor, regardless of screen resolution. I'm guessing this is simple...maybe not. Setting it to 100% doesn't seem to do the trick... Thanks in advance for any pointers.
3
6412
by: apank | last post by:
I have been working with VBA for less than a year, but mostly in Access. I have come accross an issue in Excel that I want to solve programatically. I have several pivot tables on one work sheet that feed several pivot charts. I am looking for code that will update each pivot table based on the page I select from the first pivot table on...
0
7918
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...
0
7843
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...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
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...
1
5713
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...
0
5392
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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
0
1185
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...

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.