SEO Services
Home >> Webmaster Forums >> help in algning text in top of table cell !!

help in algning text in top of table cell !!


Carpetpaul said: "whats the world coming to, having make a reasonable site, and got it working, just the ability of aliging a simple word of text in a table cell seems to be evading me now. the line of code I have is :- OPTION 1 slightly confused, I notice that I can align left and right using code similar to above, but how do I get the title for this table cell to be at the top ? thanks - Paul"

Carpetpaul said: "text I found at a 'table tutorial' website seemed to say that the 'top' command is a valid one when used inside , what have I done wrong here ? OPTION 1"

Carpetpaul said: "have tried at :- [url]http://www.w3schools.com/html/tryit.asp?filename=tryhtml_table_align[/url] ....and the 'top' and 'bottom' commands don't infact seem to work......could you suggest the correct way to do this ? thankyou ! - Paul"

texisman said: "valign="top" ?"

Carpetpaul said: "Oh yes.......thanks for that ! - and if the text was too close to the top of the cell, would it be correct to add a slim empy cell above, in order to get the correct spacing or is there further controls for alignment in table cells.......you can't use
???? thanks - Paul"

Carpetpaul said: "think that I've answered my own question..... I find that the following works perfect !
OPTION 1
cheers - Paul"

silatpupil said: "Not being rude or anything, but why are you using tables? is it for layout or statistics?"

Carpetpaul said: "I'm a little new to this web stuff, as you might have guessed. I'm just using the table as a way to split the screen area up into roughly four quaters, simply for layout of text. Can you suggest another way that is as easy to follow for beginers ? thanks Paul"

silatpupil said: "[QUOTE=Carpetpaul]I'm a little new to this web stuff, as you might have guessed. I'm just using the table as a way to split the screen area up into roughly four quaters, simply for layout of text. Can you suggest another way that is as easy to follow for beginers ? thanks Paul[/QUOTE] You could use css. You declare positional tags in an external file which is imported when you page loads, and in your html you refer back to the css file and place things where you want them. Its much quicker, as the css file is cached in the browser making each page load quicker, so it doesnt have to load up every table on every page. Example..... if you wanted your logo (logo.gif) positioned top left of the page, you would have a tag declared as: #logo{ position: absolute; top: 0px; left: 0px; width: (However wide your pic is); } Then in your html file: this lets you make site wide changes by only changing 1 file...the css one! If you need any more help, ask away, Ill be glad 2 help :D"

<h1> said: "silatpupil that method is obviously the future of web design techniques, the only problem might arise when you want to align something that may not be absolute, depending on the amount of content which further affects the size of the tab or div you are positioning. [QUOTE]Oh yes.......thanks for that ! - and if the text was too close to the top of the cell, would it be correct to add a slim empy cell above, in order to get the correct spacing or is there further controls for alignment in table cells.......you can't use
???? thanks - Paul[/QUOTE] You could use padding-top style element: [HTML]

OPTION 1
[/HTML]"

silatpupil said: "If its not absolute, you could use position: relative;"