...

View Full Version : simple html but need help asap!



slobba
12-01-2008, 11:36 AM
I need a table that has 1 row and 3 columns.

The entire table must be 100% width of the screen, yet the center column needs to be 550 pix wide and centered between the 2 outer columns

It has to be this table, and it can't be a table within a table.

Is there anyway of doing this?
and is this understandable?

If so can you send me the code for this
Thanks in advanced.
Alex

abduraooft
12-01-2008, 11:43 AM
Check http://www.bonrouge.com/3c-hf-fluid.php or http://www.bonrouge.com/3c-hf-fixed.php

PS: Why tables for layout is stupid? (http://www.hotdesign.com/seybold/)

slobba
12-01-2008, 11:58 AM
Check http://www.bonrouge.com/3c-hf-fluid.php or http://www.bonrouge.com/3c-hf-fixed.php

PS: Why tables for layout is stupid? (http://www.hotdesign.com/seybold/)

Thanks for your help abduraooft
I'm newish to coding, and really only know the basics of it,
What do you think i should use in this case?

Thanks
Alex

abduraooft
12-01-2008, 12:19 PM
What do you think i should use in this case? Have you checked those links?

_Aerospace_Eng_
12-01-2008, 02:08 PM
This sounds like a homework assignment since you put limits as to what can and can't be done. Is it?

batric
12-01-2008, 02:11 PM
Here's the code:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td width="550">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>


Just to mention, if you put some text/content in the first cell only, the right one will collapse.

Hope I helped :)

Excavator
12-01-2008, 04:52 PM
||||if you are getting paid to do a job, or doing homework, don't ask for help on it!||||:d

...

jcdevelopment
12-01-2008, 04:57 PM
Here's the code:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td width="550">&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>


Just to mention, if you put some text/content in the first cell only, the right one will collapse.

Hope I helped :)

havent used 100% tables in a while... :p But would that cause a horizontal bar to appear? Maybe we should add


* {
margin:0;
padding:0;
}

Or is that overkill?? :confused:

slobba
12-02-2008, 03:28 AM
Have you checked those links?

Yeah i checked those links, but not really what i was looking for. Good site though, i'm sure ill find the site useful later on

Thanks

slobba
12-02-2008, 03:32 AM
This sounds like a homework assignment since you put limits as to what can and can't be done. Is it?

No Not homework, just learning how to use html, and possibly make a site for myself in the near future. Ive worked with photoshop for many many years and able to make sites in that, but putting it together is the part im trying to learn.

What are your thoughts on dreamweaver? and is it a good program to start leaning with or is there something easier?

Thanks Alex

slobba
12-02-2008, 03:33 AM
:d

...

Nope, just learning html, well trying too anyway

slobba
12-02-2008, 03:38 AM
havent used 100% tables in a while... :p But would that cause a horizontal bar to appear? Maybe we should add


* {
margin:0;
padding:0;
}

Or is that overkill?? :confused:

oh excellent, now that i see it, its more simple than what i thought. This should do for now.
However, for future ideas, if i had text in the left and right cells, how do i keep them both the same size and the middle cell still in the middle?
Or cant be done?

Thanks
Alex

jcdevelopment
12-02-2008, 04:10 PM
However, for future ideas, if i had text in the left and right cells, how do i keep them both the same size and the middle cell still in the middle?

Thanks
Alex

This is why tables dont work well with design. You can set certain widths to your cells, but sometimes browser will expand cells to make it work. So in my opinion it is better to use DIV's and float them and add margins or padding.

To me its easier and the Xhtml is much cleaner and nicer.

As far as dreamweaver, if you are a beginner it is a nice program it helps with alot of things. I use it all of the time. Just because its easier to create an input text with one click than writing it all out. I do however prefer the use of a program called CODA. They are very similiar but CODA is for more advanced coders... to an extent. Also i like the whole check in check out code ability. To where you can roll back to a page that worked before... if you break something. then once everything is good and you are happy than you commit the work.. and all is good. Any who look around but i would recommend Dreamweaver though. Good Luck!!!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum