Question:
how to get css code to recognize table width values?
anonymous
2012-07-16 15:28:22 UTC
this code does not recognize the td witdh values I have put, but I can't figure out why, please advise, Thanks




























First Name: {$info['firstname']} edit
Last Name: {$info['lastname']} edit
email: {$info['email']} edit
password: ******** edit


Three answers:
Caz
2012-07-16 16:07:39 UTC
Assuming it recognises all other formating you have there..



You put:



table

{

width:800;height:25;

}



Instead put:



table

{

width:800; height:25;

}



If you have missed it i put a space between the semi-colon after 800 and the word height. Tiny things like this are often the problem and are SO frustrating and can be SO hard to find! By god do i know lol.



If this was all it was then from now on set out like this(and use the px denotation just to be sure):



table

{

width:800px;

height:25px;

}



ALWAYS with each attribute on a new line.. i notice you have done this further through the code. This will ensure that each attribute will be taken separately.



Also if this does fix it don't feel stupid. Your not! its the tiny things often that cripple us and are like a needle in a hey stack to find :S I only spotted it quick here because:



1) I've learnt from bitter experience!

2)I've not been staring at your code for hours, now bleary eyed and expecting that surely the problem must be something complicated if i haven't worked it out yet lol.



**Al - The space may not make a difference. But as you said the code works fine, which looking at it i figured it should. So i made my suggestion based on it being the only anomaly i could see and that it was at the element to which the problem is/was.
Albert W
2012-07-16 17:08:53 UTC
Hi There,

Your code worked for me both in Opera and IE-9.

I copied your code then pasted it into CoffeeCup HTML Editor and it worked "as is". Then tested in IE-9 and Opera, both worked fine.

But:

You can shorten everything up like this:







I changed the background and font color to make it easier to read. Also all the CSS can be applied to the table element. I could see no change in the way the code operates by putting a space between the tags and values. (???).



I use CoffeeCup free HTML editor which helps me a lot in choosing the proper coding.

Hope this helps,

Al
pamelia
2016-10-31 16:05:48 UTC
do you propose like a container? html   head         div {      border: 1px good black;      top: 200px;      width: 200px;     }    /kind   head body   38696558dc98494c8d951c05290a2aThis is a container.div body html


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...