Jul 25, 2008

Span "display: _____" Problems - block vs inline

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > CSS (Cascading Style Sheets)

free web hosting

Span "display: _____" Problems - block vs inline

gaea
Figured out my problem (didn't know you can't assign absolute values to inline elements).

Mods please delete this when you get the chance.

Thanks.

Reply

jlhaslip
First reaction:

You are trying to force an Inline element (the spans) to do the work of a Block level element (div). Inline-block is not cross-browser compatible, so it will likely present problems.

The "list" of links should be a list of some sort. ie: a UL/LI arrangement.

The UL is a block level element that can be given height, width and a background image. The Anchor will need to be on the LI for the hover effect in an IE6 and earlier Browser. Declare the Anchor as a Block level element, then use the inline spans for the text only. Actually, you might not need the spans. not sure.

Also, for testing purposes, lose the CSS file. bring all of your CSS into the head of the page while you are testing it, and lose the inline styling. Structure the css file so it is readable (stringing it all into one line makes it more difficult to cipher). Drop the absolute references to the background images and links.Use relative references instead.

One BIG suggestion, if this is simply too much trouble to convert, keep the table based structure you have in the original page for the Menu system. Yes, I know that isn't exactly the right thing to do, but this is a relatively complex menu structure which is not for the faint of heart or the beginning CSS coder, so that may be the best thing until you develop a working system.

 

 

 


Reply

gaea
Didn't realize that you had left a comment before I nuked my post.

As you rightly pointed out, I needed to use block level elements instead. I had come to the same conclusion about an hour earlier, but I certainly appreciate your help.

Now I've *almost* gotten everything right. Just one more bug and I should be good. For somereason the 1024 layout is incorrectly displaying one of the images. So close and yet so far away.


http://www.highimpactart.org/1280/portrait.html

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. span display line - 1.25 hr back. (1)
  2. html span display inline - 25.17 hr back. (1)
  3. - 55.76 hr back. (1)
  4. background color problem in span in ie - 57.87 hr back. (1)
  5. span display inline - 85.48 hr back. (1)
  6. html span issues - 86.46 hr back. (1)
  7. css display:inline height width problem - 96.13 hr back. (1)
  8. display: inline you have to use span for ie - 97.70 hr back. (1)
  9. anchor display block width bug - 109.03 hr back. (1)
  10. span display - 76.08 hr back. (2)
  11. html span display block - 127.56 hr back. (2)
  12. css span display inline - 167.30 hr back. (1)
  13. css span height inline - 168.67 hr back. (1)
  14. html span display bloc - 169.19 hr back. (1)
Similar Topics

Keywords : span, display, problems, block, inline

  1. [problem] Css Unordered List Display Problems Ie6 Bug
    Making unordered list under unordered list couses some padding to appe (2)
  2. Definition Lists To Display Artist, Cd, And Track
    The semantically correct method. (0)
    I had a situation where I needed to code a listing of Bands, Albums (CD's), and theTracks on
    each of the albums. In order to develop the page in a semantic manner, the best way to develop the
    code was to use the Definition List, Definition Term and Definition Data tags as follows:
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> listing albums and tracks
    html tags, listing albums and tracks for different Bands, CSS
    dl tag" /> html tags." /> /* */ ....
  3. Height % In Ff Problems With Css
    (3)
    Does anyone know how to make the height of a div in firefox equal to the percentage you input? For
    example if I put blablabla the div container will only be as high as the text makes it, when in
    internet explorer it does make it take up 100% of the page or whatever height in percentage I input
    in it. by the way, html, body {} have 100% height in them, so does the container that has the div
    element. Example: html,body {height:100%;} #container {height:100%;} #div {min-height:100%;} the
    one called #div is the one I want with 100% height. Thanks for any help.....
  4. Embeded Div's And Css Problems
    (10)
    I am making a website dessign that makes heavy use of CSS and DIV's now When I view my site as
    it is in IE it works almost perfect, but when I open it in Firefox the main background dissapears,
    here is the site here is the site and here is the external CSS file: CODE BODY {  
     background-color:#ffffff; background-image: url(images/topimage.jpg);
    background-repeat:repeat-x; } DIV.content { width:760px; position:absolute;
    top:19px; left:19px; } DIV.head { width:758px; height:125px;
    background-image: url....
  5. css scripting problems need help
    NEED HELP (5)
    for some unknown reason the scroll bar info will not kick in it eithers makes the page doe wierd
    things or nothing at all and i know i got it right so whats need help QUOTE BODY {
    font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; margin:
    0px; padding: 0px; background-color: #2d3851; } h1 { font-family: Times New Roman, serif;
    font-size: 26px; font-weight: normal; color: #e9f2fc; } h2 { font-family: Verdana, Arial,
    Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #333333; } p { font-family:....

    1. Looking for span, display, problems, block, inline

Searching Video's for span, display, problems, block, inline
advertisement



Span "display: _____" Problems - block vs inline



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE