Welcome Guest, Not a member yet? Register   Sign In
Cannot use normal HTML table
#1

[eluser]Unknown[/eluser]
Hi,

I am new to CI. I prepared a view as a HTML page. There is a table in this html like this.

<table align="center" border=2>

I cannot see borders. I saw that, i cannot align cells.

Is there any processor that processes HTML tags? I checked source and i can see border=2

Any comment?

Regards,
#2

[eluser]djenniex[/eluser]
Depends on what browser you are using. But usually all html tag arguments should be wrapped in double quotation marks ""

Code:
<table align="center" border="2">
</table>
#3

[eluser]jedd[/eluser]
[quote author="djenniex" date="1258583602"]But usually all html tag arguments should be wrapped in double quotation marks ""
[/quote]

This is very much a preference based on HTML version and web browser instance and version.

PHP-Coder - provide your code - your view, plus your browser-source.

CI does not faff around with the way your HTML is rendered - so I suspect it's a user-end problem here.
#4

[eluser]CroNiX[/eluser]
Are you using any sort of reset stylesheet? Some turn table borders off.
#5

[eluser]John_Betong[/eluser]
&nbsp;
&nbsp;

Try:
1. running your html output code through a validator
2. try using CSS style parameters instead of align=center and border=2
3. learn how to use a CSS stylesheet
4. learn the hieracry of using class, id and inline styles

&nbsp;
Meanwhile:
Code:
// instead of using
  // <table align=“center” border=2>

  // try
  <table style=width:50%; margin:0 auto; border:dotted 4px #f00'>
&nbsp;
&nbsp;
&nbsp;
edit: spelling




Theme © iAndrew 2016 - Forum software by © MyBB