Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-14-2012, 01:44 PM   PM User | #1
andaak
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
andaak is an unknown quantity at this point
Div is overlapping in the tabmenu

Problem is my content div is overlapping the tab menu bar at the top.

I added a picture so you can see the overlapping, and the text document should contain the website.

Also noticed that using " instead of ' makes IE8 screw up the content of my site.

And am using:
<p style="padding-bottom: 800px;">
</p>

to extend the site, is it smart to put it in the css instead of the html? also if there is any better option.

ty
Attached Thumbnails
Click image for larger version

Name:	upload.jpg
Views:	28
Size:	49.2 KB
ID:	11801  
Attached Files
File Type: txt upload.txt (6.9 KB, 16 views)
andaak is offline   Reply With Quote
Old 12-14-2012, 05:02 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello andaak,
Look what closing your #cssmenu before starting your #content can do for you -
Code:
<div id="content">
    <div id='cssmenu'>
        <ul>
           <li class='active '><a href='index.html'><span>Home</span></a></li>
           <li class='has-sub '><a href='#'><span>Index</span></a>
              <ul>
                 <li class='has-sub '><a href='#'><span>Micrsooft Office</span></a>
                    <ul>
                       <li><a href='\\x.html'><span>T</span></a></li>
                       <li><a href='\\x.html'><span>E</span></a></li>
                       <li><a href='\\x.html'><span>O</span></a></li>
                       <li><a href='\\x'><span>P</span></a></li>
                    </ul>
                 </li>
                 <li class='has-sub '><a href='#'><span>Product 2</span></a>
                    <ul>
                       <li><a href='#'><span>Sub Item</span></a></li>
                       <li><a href='#'><span>Sub Item</span></a></li>
                    </ul>
                 </li>
              </ul>
           </li>
           <li><a href='x.html'><span>Tab1</span></a></li>
           <li><a href='x.html'><span>Tab2</span></a></li>
           <li><a href='x.html'><span>Tab3</span></a></li>
           <li><a href='x.html'><span>Tab4</span></a></li>
           <li><a href='x.html'><span>Tab5</span></a></li>
        </ul>
    <!--end cssmenu--></div>
<div id="content"> /*you cannot re-use an id*/
Using some padding to extend the site is fine... I would put it in the CSS though, yes.

I'm not sure what screws up in IE8. That browser does not support your CSS3 rounded corners but that has nothing to do with " or ' . Could you be more specific?
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
andaak (12-14-2012)
Old 12-14-2012, 09:54 PM   PM User | #3
andaak
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
andaak is an unknown quantity at this point
Thanks for the reply! it works

It was something about my content was all white, like something was overlapping, but I am not 100% sure.

May I ask if you know any good javascript that opens a div when clicked on?
andaak is offline   Reply With Quote
Old 12-14-2012, 11:53 PM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by andaak View Post
Thanks for the reply! it works

It was something about my content was all white, like something was overlapping, but I am not 100% sure.

May I ask if you know any good javascript that opens a div when clicked on?
I like jQuery. Lots of stuff to choose from ... too many to even guess what you're looking for. Try http://papermashup.com/simple-jquery-showhide-div/
or http://www.google.com/search?q=open+...s&ie=&oe=&rlz=
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Users who have thanked Excavator for this post:
andaak (12-15-2012)
Old 12-15-2012, 12:06 PM   PM User | #5
webdevs
New Coder

 
Join Date: Nov 2012
Location: India
Posts: 52
Thanks: 0
Thanked 3 Times in 3 Posts
webdevs is an unknown quantity at this point
For the overlapping please use clear fix technique.
webdevs is offline   Reply With Quote
Users who have thanked webdevs for this post:
andaak (12-15-2012)
Old 12-15-2012, 11:34 PM   PM User | #6
andaak
New to the CF scene

 
Join Date: Dec 2012
Posts: 3
Thanks: 3
Thanked 0 Times in 0 Posts
andaak is an unknown quantity at this point
Cheers guys, your the best!
andaak is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:50 PM.


Advertisement
Log in to turn off these ads.