CSS Problem !

This is a discussion on "CSS Problem !" within the Web Page Design section. This forum, and the thread "CSS Problem ! are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 19th, 2007, 21:56
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Question CSS Problem !

Hi
I have followed a tutorial about css designing, but i have 2 problems,
One is that the navigation cant be seen in IE7 but it is correct in FF.
Second is when i make the window narrower the sidebar will go downside.
What is the problem ?

the file address is : http://www.marsoul.com/uploads/index.html
and the css file : http://www.marsoul.com/uploads/css\styles.css

Also please tell me why i get 3 validation errors ?

Thanks
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 19th, 2007, 22:12
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Problem !

If you replace your form code with this it should sort the validation.

HTML: Select all
<form id="search" action="somescript.scpt" method="post" name="search">
      <p><input type="text" class="text">
      <input type="submit" value="Search">
</p>
    </form>
dont know if it will mess anything up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 19th, 2007, 22:34
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Problem !

Ho, ho, ho. This is a funny one.

The <li> and <a> elements are there, but the links are not being shown. I believe this is because your href is blank. Try <a href="#"> instead.

The sidebar problem is happening because of the relationship between your two floating columns. You must ensure that there is always enough space at the right for your sidebar, otherwise it will be forced below the content.

You need to wrap a <div> around those two <input> elements. That should fix your validation. A <div> is preferable to <p> because those are not paragraphs!

Last edited by MikeHopley; Dec 19th, 2007 at 22:40.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 19th, 2007, 23:12
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: CSS Problem !

warping <div> for those inputs make them valid !
But those two problems still are there !!!
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 19th, 2007, 23:35
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS Problem !

Your first problem is just plain weird. You need to do some hardcore testing: isolate elements and find out what is causing the problem. Create a minimal test case: a page as simple as possible, which still displays the bug. Work from there.

Let me explain what is happening with the sidebar.

You have specified widths for each column in %. These widths sum to 95%. You have also specified margins; your margins sum to 3 ems. Can you see where I'm heading?

Your margins require some space. You have 5% of the viewport remaining. If 5% of the viewport is less than 3 ems, then you run out of space. This will occur when the viewport shrinks below (100/5)*3 = 60 ems.

To correct the problem, simply specify your margins in %, ensuring that your total % width (including margins) sums to less than 100%. Alternatively, use padding instead of margins.

**EDIT**

Hmm, maybe I misread your values. Nevertheless, it's the same principle: make sure that the total width, including margins, does not exceed the viewport width.

Last edited by MikeHopley; Dec 19th, 2007 at 23:48.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08


All times are GMT. The time now is 06:11.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42