Photoshop Contest PhotoshopContest.com
Creative Contests. Real Prizes. Essential Resource.
You are not logged in. Log in or Register

 


Photoshop Contest Forum Index - Ask the Experts - CSS Help? - Reply to topic

Goto page 1, 2  Next

TofuTheGreat

Location: Back where I belong.

Post Fri Apr 04, 2008 12:38 pm   Reply with quote         


Odd problem and I don't know if anyone here can help or not. The website for where I work is based on a Dreamweaver template and the end users can edit the content using Contribute (v2).

The navigation panel is on the left and is a DIV container with two nested DIVs. The first DIV is for sitewide links and the second DIV is for links pertinent to where the browser currently is on the site (at least that's the idea anyway but users feck that up all the time).

Anyway the DIVs all render fine within the browser. BUT when the department staff go to edit the page in Contribute the DIVs are overlapping and totally unusable (screenshots are coming as soon as I install Contribute on my workstation).

I'm pretty sure that this is a bug within Contribute but I'm not ruling out a problem with the CSS positioning either. I'm not very up on CSS and haven't had the time to fully investigate the problem. Here's the structure of the navigation bar and the layout/formatting CSS follows.

Code:

<div id="navBar">
  <div id="search">
    <form action="http://www.google.com/search">
      <label>search</label>
      <input name="q" type="text" size="18">
      <input name="btnG" type="submit" value="go">
    </form>
  </div>
  <div id="sectionLinks">
    <h3>Section Links</h3>
    <ul>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
    </ul>
  </div>
  <div class="relatedLinks">
    <h3>Related Link Category</h3>
    <ul>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
    </ul>
  </div>
</div>



Positional CSS for the DIVs is defined as:
Code:

#navBar{
   float: left;
   width: 20%;
   height: 100%;
   margin: 0px;
   padding: 0px;
}

#sectionLinks{
   position: relative;
   margin: 0px;
   padding: 0px;
   font-size: 90%;
}

.relatedLinks{
   position: relative;
   margin: 0px;
   padding: 0px 0px 10px 10px;
   font-size: 90%;
   visibility: visible;
}


Formatting CSS is:
Code:
/************* #search styles ***************/
#search{
   padding: 5px 0px 5px 10px;
   border-bottom: 1px solid #B3864F;
   font-size: 90%;
}

#search form{
 margin: 0px;
 padding: 0px;
}

#search label{
   display: block;
   margin: 0px;
   padding: 0px;
}


/*********** #navBar link styles ***********/

#navBar ul a:link, #navBar ul a:visited {display: block;}
#navBar ul {list-style: none; margin: 0; padding: 0;}

/* hack to fix IE/Win's broken rendering of block-level anchors in lists */
#navBar li {border-bottom: 1px solid #B3864F;}

/* fix for browsers that don't need the hack */
html>body #navBar li {border-bottom: none;}


/*********** #sectionLinks styles ***********/
#sectionLinks h3{
   padding: 10px 0px 2px 10px;
}

#sectionLinks a {
   display: block;
   border-top: 1px solid #B3864F;
   padding: 2px 0px 2px 10px;
}

#sectionLinks a:hover{
   background-color: #FCC374;
}

/*********** .relatedLinks styles ***********/
.relatedLinks h3{
   padding: 10px 0px 2px 0px;
}

.relatedLinks a:link,
.relatedLinks a:visited {
   display: block;
}




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

vokaris
Site Moderator

Post Fri Apr 04, 2008 1:00 pm   Reply with quote         


Whoosh - way over my head

Do you think this fix can be applied
http://www.creativeruin.com/index.cfm/article/27508

How about upgrading Contribute (to CS3 version)




supak0ma

Location: Photoshop Nation

Post Fri Apr 04, 2008 1:08 pm   Reply with quote         


Quote:
The website for where I work is based on a Dreamweaver template and the end users can edit the content using Contribute (v2).


there must be a problem with contribute (program that i totally don't know) because the css and html seem fine to me, some screenshots would help, also which browser are you using? i suggest downloading firefox if you havent already and install Firebug, the best thing ever made. With firebug i'm sure you can come to the root of the problem.




supak0ma

Location: Photoshop Nation

Post Fri Apr 04, 2008 1:11 pm   Reply with quote         


edit: Personally i think letting the client update content via contribute is crazy. Use a CMS.




TofuTheGreat

Location: Back where I belong.

Post Fri Apr 04, 2008 2:40 pm   Reply with quote         


supak0ma wrote:
edit: Personally i think letting the client update content via contribute is crazy. Use a CMS.


I work for a spend-thrift of a small county. You have to justify the purchasing of toilet paper. So getting them to buy a decent CMS and time for conversion is not gonna happen.

I'd put in an open-source CMS but I just don't have the time to redo the entire site by my lonesome. Confused

Anyway here's some screenshots. I really think it's a bug with how Contribute renders the page's HTML and CSS.

In browser mode it works right:


But in edit mode is brokeded:




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

splodge

Location: Yorkshire,

Post Fri Apr 04, 2008 2:50 pm   Reply with quote         


cells spacing, cell padding set to 0 ?
i care for Badgers too




_________________


Hallcross Toots
ScionShade

Location: VeniceFlaUS

Post Fri Apr 04, 2008 3:15 pm   Reply with quote         


Yer screenshots have contribute reading the file just like IE5 or before...
update contribute, or give up. the problems in the progs out of date rendering parameters. ...at least thats howz I'ze seez itz




ScionShade

Location: VeniceFlaUS

Post Fri Apr 04, 2008 3:17 pm   Reply with quote         


Also..you could just name each div in CSS, like the one at top name as "Div1" and then give it properties in css..(the ones it has now actually).the next div name DIV2, give same properties but set its absolute position where it needs to be below dv1. The divs will have to be the same size every time from now on, but how often do you change those sections and anyway--its tradition to not care what someone else will adopt when you're gone.
EDIT! I see the divs have names already--just add absolute positions to them and then make sure ya leave it floating a little below where it needs to so ya have room to add a few links without changing the css..which is no big deal if you end up doing anyway.




ScionShade

Location: VeniceFlaUS

Post Fri Apr 04, 2008 3:19 pm   Reply with quote         


Sorry for teh triple post, but Tofu??? Weren't you the person that guided ME when I first got into CSS?




TofuTheGreat

Location: Back where I belong.

Post Fri Apr 04, 2008 3:40 pm   Reply with quote         


ScionShade wrote:
Sorry for teh triple post, but Tofu??? Weren't you the person that guided ME when I first got into CSS?


Laughing Don't know why that made me laugh but it literally did.

Anywhoooooo....

The problem is this template is used by ALL departments. The nav boxes can expand or contract based on how many links the user puts in them. So unless I'm wrong I'll run into a problem with absolute/fixed positioning (at least that's why I went with relative). Confused

Maybe I should just recode every page to only have one navigation box. Sad




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

ScionShade

Location: VeniceFlaUS

Post Fri Apr 04, 2008 3:44 pm   Reply with quote         


Yeah--you could use images for the link section titles and give' header labels. h1 h2 h3 h4 with a knick knack paddy whack give a dog a bone
and skip the divs..? right?




Post Fri Apr 04, 2008 11:17 pm   Reply with quote         


Just curious, why is Related links using a class instead of id? I'm not sure if that's part of the problem with contribute rendering it correctly (probably not).

Other than that, I don't see any issues with the CSS. Shady's probably right with Contribute rendering it like IE5.




Post Fri Apr 04, 2008 11:53 pm   Reply with quote         


I thought at first when you stated users you were talking about the scriptwriters /coders in general not the joe q public.


I have a css list you can submit to for master guru help.. And they will help you as long as it's not myspace .. which they don't understand in the least but i'll hunt the link if you're interested they could give you a hack that would render in either version of IE

or it is that the links in the divs are floated and some are positioned relative might be a problem in some browsers, maybe if they were all absolute they'd render better...

one last idea is run it thru the w3c validator and see if it gives you error on the code.. that may be your 1st option They have a validator for the html and the css, two seperate validators




TofuTheGreat

Location: Back where I belong.

Post Sun Apr 06, 2008 2:01 am   Reply with quote         


If your guru list/forum has any ideas I'd be most appreciative. I've also posted the problem on the support forums at Adobe and I'm not getting much help from there right now.

I'm betting that Contribute v2 was built using the IE5 engine DLL. So a CSS hack would probably work I just don't know enough to get it on my own. Confused




_________________
Why I do believe it's pants-less o'clock! - Lar deSouza
”The mind is like a parachute, it doesn’t work if it isn’t open.” - Frank Zappa
Created using photoshop and absolutely no talent. - reyrey

ScionShade

Location: VeniceFlaUS

Post Sun Apr 06, 2008 6:37 am   Reply with quote         


heyheyheyhey. What I said is normal for css
Leave the whole link area wrapped in one div..divide sections of links by
using text images of link section headers in numerical h tags h1 h2 h3 h4
with css giving the image src address
Code:

<div id="navBar">
  <h1></h1>
    <form action="http://www.google.com/search">
      <label>search</label>
      <input name="q" type="text" size="18">
      <input name="btnG" type="submit" value="go">
    </form>
 
  <h2></h2>
    <ul>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
      <li><a href="#">Section Link</a></li>
    </ul>
 
 
    <h3></h3>
    <ul>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
      <li><a href="#">Related Link</a></li>
    </ul>
</div>


Code:

#navBar{
   float: left;
   width: 20%;
   height: 100%;
   margin: 0px;
   padding: 0px;
}

#h1{
  background:url(search.jpg) no-repeat right;
   position: relative;
   margin: 0px;
   padding: 0px;
}
#h2{
   background:url(seclink.jpg) no-repeat right;
#h3{
   background:url(relinks.jpg) no-repeat right;
   position: relative;
   margin: 0px;
   padding: 0px 0px 10px 10px;

}

Of course I did this sloppy..and you'll need to make test images of the actual link section headers.




Goto page 1, 2  Next

Photoshop Contest Forum Index - Ask the Experts - CSS Help? - Reply to topic

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Navigate PSC
Contests open  completed  winners  prizes  events  rules  rss 
Galleries votes  authentic  skillful  funny  creative  theme  winners 
Interact register  log in/out  forum  chat  user lookup  contact 
Stats monthly leaders  hall of fame  record holders 
PSC advantage  news (rss)  faq  about  links  contact  home 
Help faq  search  new users  tutorials  contact  password 

Adobe, the Adobe logo, Adobe Photoshop, Creative Suite and Illustrator are registered trademarks of Adobe Systems Incorporated.
Text and images copyright © 2000-2006 Photoshop Contest. All rights reserved.
A venture of ExpertRating.com