• gazzanewpy

    (@gazzanewpy)


    I have been through the CSS for the Default theme (I’m altering it completely) and I want to move the sidebar in and up, alongside the main posting div. The main div is content (I believe) and the sidebar is (surprisingly) sidebar. I need them to fit into a window (an iframe) of 700 so I thought 500 content, 200 sidebar. I got width sorted in the CSS but still cannot get the sidebar alongside the content just where I want it. Dreamweaver does not display DIVs clearly and won’t work with PHP pages anyway so I’m working blind to a large degree.

    Any ideas?

Viewing 13 replies - 1 through 13 (of 13 total)
  • moshu

    (@moshu)

    I’m working blind to a large degree…

    What could I add? ?? The whole background in K. theme is an image, so you cannot do anything in CSS about the width. (and the images are “styled” in the header.php)

    If you want to keep your sanity – choose another theme to modify.

    Thread Starter gazzanewpy

    (@gazzanewpy)

    Oh, I’ve done most of it and made the whole PHP look similar to my main site but I liked the idea of including it in an iFrame so it was identical. I’ve butchered most of the CSS and the header.PHP, footer.PHP and some of the index.PHP has changed but this part stumps me. I thought DIVs were floating boxes

    moshu

    (@moshu)

    Divs are “boxes – that’s true.
    Not seeing it, I am out of ideas. I have to add though, I don’t do Kubrick and I don’t know anything about (i)frames.

    Thread Starter gazzanewpy

    (@gazzanewpy)

    okay, here’s the link (though remember this is a work in progress and the site is actually hidden behind another one)

    https://www.gazzanewpy.me.uk/wordpress/reflect.htm

    moshu

    (@moshu)

    to fit into a window (an iframe) of 700 so I thought 500 content, 200 sidebar. I got width sorted in the CSS

    Maybe you changed the width values (though I didn’t see it!) but you also need to change the margins for the content and sidebar (floated) divs.

    Thread Starter gazzanewpy

    (@gazzanewpy)

    your right! I’ll go try.By the way, the CSS is called style.css

    moshu

    (@moshu)

    I know how it is called – I even looked at it, just didn’t see your claimed changes ??

    Thread Starter gazzanewpy

    (@gazzanewpy)

    No, in fact I set the margin to 500 and the width to 200 (making it run up to the 700 required. I then set the content 0 with wdith 500. Yet nothing

    moshu

    (@moshu)

    Using FF and the Dev Toolbar I could edit your stylesheet and could shrink your content and/or sidebar to whatever width I wanted.
    You just have to know what to edit.
    And your frame doesn’t seem to be 700px. Furthermore, the whole blog stuff is usually wrapped in an outer div and that will define how wide you can go.

    So, there is nothing esle to do, just trial and error and learning how these things work. Of course, using a simple theme would keep you sane ??

    Thread Starter gazzanewpy

    (@gazzanewpy)

    FF and the Dev Toolbar?

    And yeah, simpler would be better but I don’t like easy lives!

    moshu

    (@moshu)

    Firefox (as in browser). It has a nice little gizmo that helped me to take a look at your css file and even edit it and see the changes. Of course, it’s not changing anything on your server, just in the browser, but you can see instantly the effect of the editing.
    https://www.mozilla.com/firefox/

    Thread Starter gazzanewpy

    (@gazzanewpy)

    I run firefox but didn’t know about this tool. I have got to try that out. Thanks!

    vkaryl

    (@vkaryl)

    Also for FF: aardvark, and formatted source extensions…. which combined with the web dev toolbar make it very very easy to manipulate sites and the design thereof.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Sidebar div settings’ is closed to new replies.