Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I just got a template and I work in the English but when the HTML comes to the Arabic I had some problems

the code

HTML
 <!DOCTYPE HTML>
<html dir="rtl">

<head>
    <title>الصفحة الرئيسية</title>
    <meta name="description" content="website description" />
    <meta name="keywords" content="website keywords, website keywords" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/style.css" />
    <!-- modernizr enables HTML5 elements and feature detects -->
    <script type="text/javascript" src="js/modernizr-1.5.min.js"></script>

</head>

<body dir="rtl">
    <div id="main" >

        <div id="top_split" >

            <header>
                <div id="logo">
                    <div id="logo_text">
                        <!-- class="logo_colour", allows you to change the colour of the text -->
                        <h1 dir="rtl"><a href="index.html">CSS3<span class="logo_colour">_gallery_grey</span></a></h1>
                        <h2 dir="rtl">Simple. Contemporary. Website Template.</h2>
                    </div>
                </div>
                <nav > <! I have a problem/>
                    <ul class="sf-menu" id="nav"  >
                        <li><a href="index.html">Home</a></li>
                        <li><a href="about.html">About</a></li>
                        <li>
                            <a href="#">Our Work</a>
                            <ul>
                                <li><a href="#">Drop Down One</a></li>
                                <li>
                                    <a href="#">Drop Down Two</a>
                                    <ul>
                                        <li><a href="#">Sub Drop Down One</a></li>
                                        <li><a href="#">Sub Drop Down Two</a></li>
                                        <li><a href="#">Sub Drop Down Three</a></li>
                                        <li><a href="#">Sub Drop Down Four</a></li>
                                        <li><a href="#">Sub Drop Down Five</a></li>
                                    </ul>
                                </li>
                                <li><a href="#">Drop Down Three</a></li>
                                <li><a href="#">Drop Down Four</a></li>
                                <li><a href="#">Drop Down Five</a></li>
                            </ul>
                        </li>
                        <li><a href="contact.html">Contact Us</a></li>
                    </ul>
                </nav>

                <ul id="images" dir="rtl">
                    <li><img src="images/1.jpg" width="600" height="300" alt="gallery_buildings_one" /></li>
                    <li><img src="images/2.jpg" width="600" height="300" alt="gallery_buildings_two" /></li>
                    <li><img src="images/3.jpg" width="600" height="300" alt="gallery_buildings_three" /></li>
                    <li><img src="images/4.jpg" width="600" height="300" alt="gallery_buildings_four" /></li>
                    <li><img src="images/5.jpg" width="600" height="300" alt="gallery_buildings_five" /></li>
                    <li><img src="images/6.jpg" width="600" height="300" alt="gallery_buildings_six" /></li>
                </ul>

            </header>

        </div>

        <div id="site_content">
            <div id="sidebar_container">
                <div class="sidebar">
                    <h3>Latest News</h3>
                    <h4>New Website Launched</h4>
                    <h5>January 1st, 2014</h5>
                    <p>2014 sees the redesign of our website. Take a look around and let us know what you think.<br /><a href="#">Read more</a></p>

                </div>
            </div>
            <div class="content">
                <h1>A Page</h1>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.</p>
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.</p>
            </div>
        </div>
        <footer> < ! in here also problem />
            <p>Copyright © CSS3_gallery_grey | <a href="http://fotogrph.com/">Images</a> | <a href="http://www.css3templates.co.uk">design from css3templates.co.uk</a></p>
        </footer>
    </div>
    <p> </p>
    <!-- javascript at the bottom for fast page loading -->
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.easing-sooper.js"></script>
    <script type="text/javascript" src="js/jquery.sooperfish.js"></script>
    <script type="text/javascript" src="js/jquery.kwicks-1.5.1.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#images').kwicks({
                max: 600,
                spacing: 2
            });
            $('ul.sf-menu').sooperfish();
        });
    </script>
</body>
</html>
Posted
Updated 19-May-15 8:06am
Comments
Richard Deeming 19-May-15 15:05pm    
Sorry, ignore my answer. I skimmed your HTML and thought it was using Bootstrap, but I see now that it isn't.
Richard Deeming 19-May-15 15:13pm    
Is it the Sooperfish[^] menu that's causing problems? It might be worth logging an issue[^] on their GitHub repository to see if they can add RTL support.

1 solution

 
Share this answer
 
Comments
elmutasim23 19-May-15 14:21pm    
I tried this option before
Sergey Alexandrovich Kryukov 19-May-15 14:30pm    
But it should work. What's the problem then? And what do you mean by "convert"? :-)
—SA
elmutasim23 19-May-15 14:55pm    
how to make the css
Sergey Alexandrovich Kryukov 19-May-15 15:17pm    
What do you mean "how"? All styling is build on CSS. Please see the last link, learn CSS if you haven't done it before.
—SA
elmutasim23 19-May-15 15:30pm    
thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900