• I am trying to format the body of a page with boxes. First question is: if I want two parallel boxes like newspaper columns, is it better to have an enveloping box for them or does it matter?

    Second question: I do not seem to be able to get css boxes to work right; instead I get open text showing on the page. I know I am missing something simple, but I haven’t figured it out yet despite rummaging through numerous tutorials and examples. Here is code I have:

    </div>
    <div>body {
    background-color: transparent;
    position: absolute;
    top: 220px;
    width: 460px;
    height: 600px;
    left: 10px;
    }
    <div style=”

    Why does this show as open text on the page?
    What am I missing to make it “work”?

    I am not working with an HTML sub-page, just trying to get a single CSS page to work for now.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • you seem to be mixing html code and css code.

    i suggest that you catch up with the basics;
    for instance:
    https://www.w3schools.com/

    Thread Starter knightofalltrades

    (@knightofalltrades)

    I kinda thought that was it… I just haven’t found a clear example of code for a straight css box. Taking your suggestion I find this:
    https://www.w3schools.com/css/tryit.asp?filename=trycss_boxmodel_width

    Hope that helps….

    Thread Starter knightofalltrades

    (@knightofalltrades)

    Hoo Boy am I a noob!!

    I am currently using wordpress 3.04 (on a private site) and thinking I needed exclusively CSS code, but now I see that the stuff I have used that actually works is HTML, so if I use “HTML framesets” instead of “CSS boxes” it seems to work better.

    What was driving me nuts was seeing examples that used braces, aka “wavy brackets” to delineate sections of code with no explanation for using that instead of < and> arrows.

    Guess I was looking in the wrong ‘box’ for answers! ??

    Thread Starter knightofalltrades

    (@knightofalltrades)

    OK this is crazy- the above post is probably more of me not understanding something.

    I insert code for frameset into my wordpress document, then switch to visual and switch back to html, not doing anything else, and the codes relating to frameset are removed.

    I understand some automated correction or editing happens here, but why?

    Thread Starter knightofalltrades

    (@knightofalltrades)

    Bump!
    anybody?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CSS boxes – wrong code?’ is closed to new replies.