All language subtitles for 021 Using HTML Tables for Layout.en_US

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,030 --> 00:00:04,200 Now, the other thing that I want to do with the website is if we have a look at 2 00:00:04,200 --> 00:00:05,310 Thomas Cormen's site, 3 00:00:05,550 --> 00:00:10,550 you can see that he's got his picture on the left and his name and his title and 4 00:00:10,920 --> 00:00:14,730 his blurb next to that image. And that's quite a nice layout. 5 00:00:15,030 --> 00:00:16,530 So we can do that here as well. 6 00:00:16,530 --> 00:00:21,300 We're going to have our image on the left and all of this on the right, next to 7 00:00:21,300 --> 00:00:26,040 the image. Now, because we haven't yet spoken about CSS and styling, 8 00:00:26,640 --> 00:00:31,640 if we wanted to only use pure HTML to affect how this part of our website looks, 9 00:00:33,330 --> 00:00:35,820 then we can use our tables to do that. 10 00:00:36,240 --> 00:00:41,240 So let's go up here where the body of our website begins and let's add a table 11 00:00:43,350 --> 00:00:46,920 and let's add a table row. And inside this row, 12 00:00:46,920 --> 00:00:51,150 it's only going to have two table cells or td elements, 13 00:00:51,920 --> 00:00:52,753 right? 14 00:00:53,660 --> 00:00:57,260 The first td element is going to contain the image. 15 00:00:59,000 --> 00:01:03,830 And the second td element is going to contain all of this up to the horizontal 16 00:01:03,830 --> 00:01:07,490 rule. So let's just cut it and paste it into here. 17 00:01:09,230 --> 00:01:14,230 Now, we can hit save and let's refresh our page and you can see that we're 18 00:01:14,420 --> 00:01:16,670 getting close to this kind of structure, 19 00:01:17,300 --> 00:01:22,100 where we've got a single table with only two columns and two cells, 20 00:01:22,430 --> 00:01:25,460 this being one cell and this being the other cell. 21 00:01:25,970 --> 00:01:29,510 And that allows us to get this kind of layout for our website. 22 00:01:30,800 --> 00:01:35,210 Now, you can see here that there's a little bit of a gap between the image and 23 00:01:35,240 --> 00:01:37,310 the text, whereas on our site 24 00:01:37,460 --> 00:01:41,060 it's right up and next to the image. Now, 25 00:01:41,060 --> 00:01:43,520 if you wanted to increase that distance, 26 00:01:43,940 --> 00:01:48,380 then you can achieve that by changing the table's cell spacing. 27 00:01:49,010 --> 00:01:50,840 And if you have a look in the attributes, 28 00:01:50,990 --> 00:01:53,750 you can see this attribute called cell spacing 29 00:01:54,050 --> 00:01:59,050 which defines the size of the space between two cells in a percentage value or 30 00:01:59,150 --> 00:02:03,050 pixels. So let's go ahead and add some spacing to our table. 31 00:02:03,320 --> 00:02:05,270 So inside our table element, 32 00:02:05,360 --> 00:02:10,360 we're going to use cell spacing and lets set it to equal 20 and hit save. And 33 00:02:12,170 --> 00:02:16,280 then let's go and have a look. Nice. That looks pretty good, right? 2989

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.