Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wael

Members
  • Joined

  • Last visited

  1. Hi Back to you again with new problem that I have. The main menu hover does not work. I mean when hovering the mouse over an item of the main menu - the image of the hovered item should be changed, however it does not work. You can see how I did that in the code. I guess it is right , but somehow it does not work. The man menu is one image . Please see the attached image of the main menu.
  2. Thank you man. I figured out that mistakes when I tried to validate HTML and CSS. Already fixed. I also succeeded to fix the problem by creating 3 column div. First column floated to left. Second column floated to right, and the middle column which is the VerticalDivider is also div which should be padding between teh 2 columns. That worked. Thank you so much for your help also. I appreciated that/
  3. Thank you James for teh small fixes. I appreciate that. However that did not fix my problem yet. I still have that issue that I have explained in my attachments. Please see the attached image to see what is my current situation and how I can fix that. Please review the current code. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link href="style.css" rel="stylesheet" type="text/css"/> <title>ITPS - Information Technology Professional Services</title> </head> <body> <div id="Container"> <div id="Top"> <ul id="TopMenu"> <li><a href="#">Our Blog</a></li> <li><a href="#">Log in</a></li> <li><a href="#">Start</a></li> <li><a href="#">Home</a></li> </ul> <!-- end ul--> </div><!-- End top--> <div id="Header"> <h1><a href="#">ITPS Logo</a></h1> <ul> <li id="home"><a href="#">Home</a></li> <li id="about"<a href="#">About</a></li> <li id="services"><a href="#">Services</a></li> <li id="downloads"><a href="#">Downloads</a></li> <li id="contact"><a href="#">Contact</a></li> </ul><!-- End Ul --> </div><!-- End Header--> <div id="Featured"> <!-- <h1>ITPS</h1> <h2>Information Technology Professionl Services</h2> --> <h1><a href="#">ITPS</a></h1> <a href="#" id="FeaturedImage">Featured Image</a> <a href="#" id="ReadMoreButton">Read More.</a> </div><!-- End Featured--> <div id="Tier1"> <div id="OurCopmany"> <h1 id="WelcomeToOurCompany" Welcome to Our Company </h1> <p id="WelcomeText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum. Morbi nec dui ac est tincidunt varius. Suspendisse lacinia suscipit elit, at laoreet erat ullamcorper semper. Donec a nulla sapien. Quisque venenatis fermentum felis id porta. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec magna metus, bibendum nec vehicula nec, consequat ut elit. Vestibulum imperdiet, neque non semper ultricies, justo velit vestibulum ligula, in hendrerit lorem turpis ut sem. </p> </div><!-- End OurCompany--> </div><!-- End Tier1--> <div id="Tier2"> <h2 id="MiddleDivider" MiddleDivider </h2> </div><!-- End Tier2--> <div id="Tier3"> <div id="RecentWorkSamples"> <h1 id="RecentWorkSamplesImage" Recent Work Samples </h1> <div id="WorkImages"> <img class="WorkImage1" src="imgs/WorkImage1.png" /> <img class="WorkImage1" src="imgs/WorkImage2.png" /> <img class="WorkImage1" src="imgs/WorkImage3.png" /> <img class="WorkImage1" src="imgs/WorkImage4.png" /> </div><!-- End WorkImages--> <small id="MoreButton">More</small> </div><!-- End RecentWorkSamples--> <div id="VerticalDivider"> <small>VerticalSivider</small> </div> <div id="ClientTestimonials"> <h1 id="ClientTestimonialsImage" Client Testimonals </h1> <div id="Client1"> <small>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum.</small> </div> <div id="Client2"> <small>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum.</small> </div> <small id="MoreButton">More</small> </div> </div><!-- End Tier3--> </div><!-- End Container--> </body> </html> /*Css File*/ /* CSS Reset */ * { margin:0; padding:0; } body { background:#1a1d20; font-size:90%; font-family: helvetica, georgia,sans-serif; text-align: center; line-height: 1.6em; color: #959ca0; } a{ text-decoration: none; color: #0375a6; outline:0; } a:hover { text-decoration: underline; } a img { border:none; } #Container { text-align: left; width: 1024px; margin: auto; background: url(imgs/Background.png) repeat-x 0 0; } #Container ul, #Container ul li a { list-style-type: none; }/*To remove the dots behind the list items*/ #Top{ color:white; } #Top ul#TopMenu li{ text-align:right; margin:0 10px 0 0; float:right; } #Header{ display: block; width:930px; height:130px; } #Header h1{ display: block; float:left; width: 236px; height: 61px; background: url(imgs/logo.png) no-repeat 0 0; text-indent: -10000px; margin:50px auto 0 50px; } #Header ul { display: block; float:right; width:528px; height: 16px; background: url(imgs/menu.png) no-repeat 0 0; list-style: none; text-indent:none; margin:40px auto 50px 50px; } #Header ul li{ display: none; float: left; text-indent: -10000px; height:16px; } /*We set the children <a> elements of our list items to display block with a width and height equal to their parents.*/ #Header ul li a{ display:block; width:100%; height:100%; } /*We need to set custom widths for each list item so that the clickable area of each menu item will be accurate.*/ #home { width:90px; } #about { width:90px; } #services{ width:90px; } #downloads { width:110px; } #contact{ width:120px; } /*Finally, for the hover, we adjust the background-position property of the menu.png sprite*/ #home a:hover { background: url(imgs/menu.png) no-repeat 0 -17px; } #about a:hover { background: url(imgs/menu.png) no-repeat -160px -17px; } #services a:hover { background: url(imgs/menu.png) no-repeat -297px -17px; } #downloads a:hover { background: url(imgs/menu.png) no-repeat -457px -17px; } #contact a:hover { background: url(imgs/menu.jpg) no-repeat -667px -17px; } #Featured { display: block; width:1024px; height:325px; margin:0px auto auto 0px; background:#2d3137; background: url(imgs/FeaturedBackground.png) no-repeat 0 0 ; } #Featured h1 { display:block; width:419px; height:51px; float:left; margin:55px 0 50px 60px; background: url(imgs/ITPS.png) no-repeat 0 0 ; text-indent: -10000px; } #Featured #FeaturedImage{ display: block; float:right; width:512px; height: 512px; background: url(imgs/BoxImage2.png) no-repeat 0 0 ; text-indent: -10000px; /*margin:60px 165px auto auto; */ margin:-55px 0px 0px 0px; } #Featured #ReadMoreButton{ display: block; width:140px; height:40px; float:left; background: url(imgs/ReadMore.png) no-repeat 0 0 ; text-indent: -10000px; margin: 100px auto auto 300px; } #Featured a { outline: 0; } /*...........Tier1............*/ #Tier1 { display:block; width:1024px; height: 206px; margin: 10px auto auto 0px; } #Tier1 #WelcomeToOurCompany { display: block; width:279px; height: 25px; background: url(imgs/WelcomeToOurCompany.png) no-repeat 0 0; margin: 10px auto auto 30px; text-indent: -10000px; } #Tier1 #WelcomeText { width:900px; margin: 5px auto 0px 40px; } /*...........Tier2............*/ #Tier2 #MiddleDivider { display: block; width:966px; height:5px; margin: 0px auto 0px 30px; background: url(imgs/divider.png) no-repeat 0 0; text-indent: -10000px; } /*...........Tier3............*/ #Tier3 { display: block; width:1024px; height:350px; margin: 0px auto auto auto; } #Tier3 #RecentWorkSamples { display:block; width:515px; height:350px; } #Tier3 #RecentWorkSamplesImage { display:block; width:230px; height:45px; margin: 0px auto 0px 30px; background: url(imgs/RecentWork.png) no-repeat 0 0; } #Tier3 #WorkImages{ display:block; margin:10px auto auto 40px; } .WorkImage1 { margin:auto 15px 10px auto; } #MoreButton { display:block; float:right; width:65px; height:22px; margin:auto 30px auto auto; background: url(imgs/morebutton.png) no-repeat 0 0 ; text-indent: -10000px; } #VerticalDivider { display: block; width:2px; height:284px; background: url(imgs/VerticalDivider.png) no-repeat 0 0 ; text-indent: -10000px; } #Tier3 #ClientTestimonials { display:block; } #Tier3 #ClientTestimonialsImage { display:block; width:230px; height: 45px; margin: 0px auto 0px 30px; background: url(imgs/ClientTestemonals.png) no-repeat 0 0 ; } I am not able to bring the Vertical Divider to the middle between "Recent Work Samples", and "Client Testimonials". Something wrong that I am not able to understand and fix. Maybe something wrong in my understanding of the floats of the divs or the divs dimensions .. Do not know... Please help
  4. Thank you for answering :-) You mean the img tag in HTML?? Can you give more details about your answer please??!! I am new to all of this. Thank you
  5. Hi Hope that someone can help me. After designing the website by Photo-shop and starting to convert it to CSS and HTML, I encountered some problems in that. I have div that should include 2 parts with vertical divider between them, however somehow I am not able to position the 2 parts in the right places. Please see the attached images - with explanations - for more details. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link href="style.css" rel="stylesheet" type="text/css"/> <title>ITPS - Information Technology Professional Services</title> </head> <body> <div id="Container"> <div id="Top"> <ul id="TopMenu"> <li><a href="#">Our Blog</a></li> <li><a href="#">Log in</a></li> <li><a href="#">Start</a></li> <li><a href="#">Home</a></li> </ul> <!-- end ul--> </div><!-- End top--> <div id="Header"> <h1><a href="#">ITPS Logo</a></h1> <ul> <li id="home"><a href="#">Home</a></li> <li id="about"<a href="#">About</a></li> <li id="services"><a href="#">Services</a></li> <li id="downloads"><a href="#">Downloads</a></li> <li id="contact"><a href="#">Contact</a></li> </ul><!-- End Ul --> </div><!-- End Header--> <div id="Featured"> <!-- <h1>ITPS</h1> <h2>Information Technology Professionl Services</h2> --> <h1><a href="#">ITPS</a></h1> <a href="#" id="FeaturedImage">Featured Image</a> <a href="#" id="ReadMoreButton">Read More.</a> </div><!-- End Featured--> <div id="Tier1"> <div id="OurCopmany"> <h1 id="WelcomeToOurCompany" Welcome to Our Company </h1> <p id="WelcomeText">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum. Morbi nec dui ac est tincidunt varius. Suspendisse lacinia suscipit elit, at laoreet erat ullamcorper semper. Donec a nulla sapien. Quisque venenatis fermentum felis id porta. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec magna metus, bibendum nec vehicula nec, consequat ut elit. Vestibulum imperdiet, neque non semper ultricies, justo velit vestibulum ligula, in hendrerit lorem turpis ut sem. </p> <h2 id="MiddleDivider" MiddleDivider </h2> </div><!-- End OurCompany--> </div><!-- End Tier1--> <div id="Tier2"> <div id="RecentWorkSamples"> <h1 id="RecentWorkSamplesImage" Recent Work Samples </h1> <div id="WorkImages"> <img id="WorkImage1" src="imgs/WorkImage1.png"</img> <img id="WorkImage1" src="imgs/WorkImage2.png"</img> <img id="WorkImage1" src="imgs/WorkImage3.png"</img> <img id="WorkImage1" src="imgs/WorkImage4.png"</img> </div><!-- End WorkImages--> <small id="MoreButton">More</small> </div><!-- End RecentWorkSamples--> <img id="VerticalDivider" src="imgs/VerticalDivider.png"<img> <div id="ClientTestimonials"> <h1 id="ClientTestimonialsImage" Client Testimonals </h1> <p id="Client1"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum. </p> <p id="Client1"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum augue id lectus laoreet a iaculis ligula tincidunt. Sed vehicula quam ac arcu facilisis dapibus. Integer fermentum dignissim purus et bibendum. </p> <small id="MoreButton">More</small> </div> </div><!-- End Tier2--> </div><!-- End Container--> </body> </html> /*Css File*/ /* CSS Reset */ * { margin:0; padding:0; } body { background:#1a1d20; font-size:90%; font-family: helvetica, georgia,sans-serif; text-align: center; line-height: 1.6em; color: #959ca0; } a{ text-decoration: none; color: #0375a6; outline:0; } a:hover { text-decoration: underline; } a img { border:none; } #Container { text-align: left; width: 1024px; margin: auto; background: url(imgs/Background.png) repeat-x 0 0; } #Container ul, #Container ul li a { list-style-type: none; }/*To remove the dots behind the list items*/ #Top{ color:white; float:right; } #Top ul#TopMenu li{ text-align:right; margin:0 10px 0 0; float:right; } #Header{ display: block; width:930px; height:100px; } #Header h1{ display: block; float:left; width: 236px; height: 61px; background: url(imgs/logo.png) no-repeat 0 0; text-indent: -10000px; margin:50px auto 0 50px; } #Header ul { display: block; float:right; width:528px; height: 16px; background: url(imgs/menu.png) no-repeat 0 0; list-style: none; text-indent:none; margin:40px auto 50px 50px; } #Header ul li{ display: none; float: left; text-indent: -10000px; height:16px; } /*We set the children <a> elements of our list items to display block with a width and height equal to their parents.*/ #Header ul li a{ display:block; width:100%; height:100%; } /*We need to set custom widths for each list item so that the clickable area of each menu item will be accurate.*/ #home { width:90px; } #about { width:90px; } #services{ width:90px; } #downloads { width:110px; } #contact{ width:120px; } /*Finally, for the hover, we adjust the background-position property of the menu.png sprite*/ #home a:hover { background: url(imgs/menu.png) no-repeat 0 -17px; } #about a:hover { background: url(imgs/menu.png) no-repeat -160px -17px; } #services a:hover { background: url(imgs/menu.png) no-repeat -297px -17px; } #downloads a:hover { background: url(imgs/menu.png) no-repeat -457px -17px; } #contact a:hover { background: url(imgs/menu.jpg) no-repeat -667px -17px; } #Featured { display: block; width:1024px; height:325px; float:right; background:#2d3137; background: url(imgs/FeaturedBackground.png) no-repeat 0 0 ; } #Featured h1 { display:block; width:419px; height:51px; float:left; margin:55px 0 50px 60px; background: url(imgs/ITPS.png) no-repeat 0 0 ; text-indent: -10000px; } #Featured #FeaturedImage{ display: block; float:right; width:512px; height: 512px; background: url(imgs/BoxImage2.png) no-repeat 0 0 ; text-indent: -10000px; /*margin:60px 165px auto auto; */ margin:-55px 0px 0px 0px; } #Featured #ReadMoreButton{ display: block; width:140px; height:40px; float:left; background: url(imgs/ReadMore.png) no-repeat 0 0 ; text-indent: -10000px; margin: 100px auto auto 300px; } #Featured a { outline: 0; } /*Tier1*/ #Tier1 { display:block; width:1024px; height: 206px; float:left; margin: 10px auto auto 0px; } #Tier1 #WelcomeToOurCompany { display: block; width:279px; height: 25px; background: url(imgs/WelcomeToOurCompany.png) no-repeat 0 0; margin: 10px auto auto 30px; text-indent: -10000px; } #Tier1 #WelcomeText { width:900px; margin: 20px auto auto 40px; } #Tier1 #MiddleDivider { display: block; width:966px; height:5px; margin: 20px auto auto 30px; background: url(imgs/divider.png) no-repeat 0 0; text-indent: -10000px; } /*Tier2*/ #Tier2 { display: block; width:1024px; margin: 10px auto auto 0px; } #Tier2 #RecentWorkSamples { width:515px; float:left; } #Tier2 #RecentWorkSamplesImage { display:block; width:230px; height:45px; margin: 0px auto 0px 30px; background: url(imgs/RecentWork.png) no-repeat 0 0; } #Tier2 #WorkImages{ display:block; margin:10px auto auto 40px; } #WorkImage1 { margin:auto 15px 20px auto; } #MoreButton { display:block; float:right; width:65px; height:22px; margin:auto 30px auto auto; background: url(imgs/morebutton.png) no-repeat 0 0 ; text-indent: -10000px; } #VerticalDivider { display: block; float:left; } Also , somehow the footer disappeared suddenly. It should be there and was there - but somehow after few changes it disappeared and could not get it back. The background is a vertical rectangle of 20px width and its height is the template height. was cropped from my photoshop design. Please try to help Thank you

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.