סימן קלט סעיף ח
מִצְוָה לְהַנִּיחָם לְמַעְלָה מִשְּׁלֹשָׁה טְפָחִים מִן הַקַּרְקַע, וּלְמַטָּה מֵעֲשָׂרָה טְפָחִים. וְאִם הִנִּיחָם לְמַעְלָה מֵעֲשָׂרָה, יָצָא. אֲבָל אִם הִנִּיחָם לְמַעְלָה מֵעֶשְׂרִים אַמָּה, לֹא יָצָא, מִשׁוּם דִּלְמַעְלָה מֵעֶשְׂרִים אַמָּה לָא שָׁלְטָא עֵינָא. וּמִי שֶׁהוּא דָר בַּעֲלִיָה, יָכוֹל לְהַנִּיחָם בַּחַלּוֹן, אַף עַל פִּי שֶׁהוּא גָבוֹהַּ מֵעֲשָׂרָה טְפָחִים. אֲבָל אִם הַחַלּוֹן לְמַעְלָה מֵעֶשְׂרִים אַמָּה מִקַּרְקַּע רְשׁוּת הָרַבִּים, דְּלָא שָׁלְטָא בְּהוּ עֵינָא מֵהַהוֹלְכִים בִּרְשׁוּת הָרַבִּים, אֲזַי טוֹב יוֹתֵר לְהַנִּיחָם אֵצֶל הַפָּתַח.
The mitzvah requires that [the menorah] be placed higher than three tefachim4See glossary. above the floor and lower than ten tefachim. But if you placed it higher than ten tefachim you have fulfilled your obligation. However, if you placed it higher than twenty amos4See glossary. you have not fulfilled your obligation, because when it is placed higher than twenty amos it is out of the range of vision. If you live on an upper floor you may place [the menorah] in the window, even though it is higher than ten tefachim from the ground. But if the window is higher than twenty amos from the ground of the public domain, where it is out of visual range of the people walking in the street, then it is preferable to place the lights near the door.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)