943,974 Members | Top Members by Rank

Ad:
Feb 25th, 2009
0

css problems with left col/menu

Expand Post »
hi,

I have this css code
HTML and CSS Syntax (Toggle Plain Text)
  1. #leftcol {
  2. position:relative;
  3. top:-10px;
  4. left:-10px;
  5. float:left;
  6. width:220px;
  7. voice-family: "\"}\"";
  8. voice-family:inherit;
  9. width:200px;
  10. margin:0 0 -10px 0;
  11. padding:10px;
  12. background:#FFFFFF;
  13. z-index:100;
  14. }
  15. #rightcol {
  16. position:relative;
  17. top:-10px;
  18. right:-10px;
  19. float:right;
  20. width:220px;
  21. voice-family: "\"}\"";
  22. voice-family:inherit;
  23. width:200px;
  24. margin:0 0 -10px 0;
  25. padding:10px;
  26. background:#FFFFFF;
  27. z-index:99;
  28. }
  29. #centercol {
  30. position:relative;
  31. padding:0 240px;
  32. }


basically they are all aligned...

i want the space between left menu/col and centercol to be less. but it is giving me headache. i tried padding-right.

but it doesnt work help please
Last edited by sam1; Feb 25th, 2009 at 1:27 pm.
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Feb 27th, 2009
0

Re: css problems with left col/menu

Perhaps adjusting the margin attribute could help, for example if your left column had something like "margin-right: 10px;"
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sappster is offline Offline
5 posts
since Feb 2009
Feb 28th, 2009
0

Re: css problems with left col/menu

Negative margin values are nonstandard, and can fail.

The capital letters in the color definition may be causing Firefox to throw out the style.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Div padding issue
Next Thread in HTML and CSS Forum Timeline: Spread Image Across Page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC