Top.Mail.Ru
webdev, posts by tag: css - LiveJournal — LiveJournal
? ?
 

webdev, posts by tag: css - LiveJournal

About  

Floating within an inline element Aug. 26th, 2010 @ 10:54 am
valera
I have an html button composed of two elements (like the one from: http://www.jankoatwarpspeed.com/post/2008/04/30/make-fancy-buttons-using-css-sliding-doors-technique.aspx) floated left one against another. This works fine if the button is on its own line, But I'd like to be able to do something like this: "some text [button]", without having to float the text as well. How can I isolate the button's floating so that the button's composing elements are floated, but the whole button element itself behaves like a regular inline element?
Tags:

CSS layout Jun. 18th, 2009 @ 12:27 pm
valera
I'm trying to make a database results page similar to that of the search results on face book. Unfortunately, I'm not getting something in CSS, and my page comes out looking like this:


This is the style for it, and this is the jsp that creates the html.

Of course, this is what I'd like to have it look like.

So why are the images being shifted to the right (with a float:left), and why are things jumping out of their respective divs? What am I doing wrong?! :) Thanks for any help!
Tags:

Would love some help on CSS/Tables/Hotspot Feb. 24th, 2009 @ 08:51 am
babyfevertime
I am doing a website for a client, and I am using CSS-based template that has worked well for me through multiple sites.  it is a standard 3-column layout with header, submenu stripe (horizontal navigation bar) and a stripe in the footer for a secondary navigation bar. 

This client wants both a search bar in the top RH corner and buttons on the bottom RH corner of the header (which sits in the CSS as a background image).  I have been playing with how to accomplish this.  My first thought was to create a table that spans the entire height of the header, but that seems to push down the submenu.  My second thought was to follow A List Apart's Night of the Image map, but I am having trouble getting it to float in the wrapper/header divs.

My html

My css

I would dearly love some help.  I have used the Night of the Image map technique in previous websites before, but never in this particular fashion, so I don't know if it's the approach or if it's my error.  Same with tables.  I generally hate throwing in tables to my CSS work, but I'm not sure what else to do!

Thank you in advance!

Tags:

CSS Background problem [Resolved] Jan. 31st, 2009 @ 04:30 am
sapphosdaughter
Here is the page - http://chipmunks.queerwomenottawa.net/

Here is the CSS for the body tag:

<style type="text/css">
body
{
    background: url("http://i272.photobucket.com/albums/jj179/mylittlesandwich/chipmunks_certed/chipbk.png");
    background-attachment: fixed;
}
</style>

Anyone have any idea why it is not working in IE or Firefox?

I have tried other CSS methods and none seem to work. I

Thanks!
Tags:

css fluid three column layout help Jan. 13th, 2009 @ 12:51 am
lostaddiction
Yes, some of you may be groaning at the subject title here, sorry abotu that. But i'm going round the bend with something. Well, two things to be honest!

I've been trying to use the code as supplied by blue robot to have a fluid three column layout. However, their code does not include a footer.

When i add a footer, it just aligns to the bottom of the central coloumn, whereas i'd like it to align with the bottom of the longest column.

The second problem is that the middle column only fills up the space in the middle if there is text to push it to the limit. If it's a fixed width table that doesn't go right to the egdes, the column is only as wide as the table..

So to demonstrate:
the main page has plenty of dummy text - http://www.djviper.net/just/index.php
but th elogin pge doesn't, and therefore doesn't stretch right across (div column has black border) - http://www.djviper.net/just/login.php

the css can be found at http://www.djviper.net/just/css/fgp.css

If anyone could have a peek at these for me, and tell me what i need to put in order to correct it and have it working smoothly, i'd *greatly* appreciate it :) pretty please?

if you need any more info or files to solve the problem, just ask!

paul
Tags:
Other entries
» IE positioning problem
I'm designing a new template for this site, which is built on CollegePublisher, and after a lot of frustration with its limitations I'm pretty much okay with the design. There's just one problem left, which only happens in IE as far as I can tell - the section links across the top of the page (News, Opinions etc, which are the #cp_nav div) get shoved to the right of the header image instead of centering directly below it. This is the CSS for the div:

#cp_nav {
position: absolute;
top: 140px;
}

The problem probably has something to do with the div being below everything else in the page's HTML, but unfortunately I don't have control over that bit, hence the absolute positioning. Is there any way around this?

Thanks in advance!
» Help needed with IE6 rendering
Yesterday I sat down and fixed my website and blog so that they were compatible with IE7. They had been happily compatible with IE6, Firefox, Opera, Safari...really, everything except IE7.

I used the conditional comments trick to move my IE hacks into a separate CSS file so that all versions of IE could still see them, tested everything and it seemed to work perfectly.

I don't have IE6 installed on this machine (I had to upgrade to Vista when I bought my new laptop) so I asked some friends to check the site in IE6 for me. They reported that the main site works without a problem but the blog (based on the main site design) no longer renders correctly. The left hand navigation has been shoved to the middle of the screen (over the content) and the right-hand navigation is missing although there is a space for it. I installed a plug in for Firefox that renders an image in the requested browser and sends me a screen shot so that I could see the issue, but I`m not 100% convinced about its accuracy.

I have been through the CSS and the HTML code several times, tried changing width settings and making sure that all the DIVs were closed correctly, but I cannot find anything.

Even more frustratingly, if I switch back to the original theme without the changes it doesn't work properly in IE6 either! Or at least according to my FF plug-in. The blog definitely worked in IE6 six weeks ago so I cannot understand what has changed to disable it. Is there anyone out there with any ideas on what I've mucked up?

The site is at http://www.abovethefold.co.uk/blog/. The CSS is at http://www.abovethefold.co.uk/blog/wp-content/themes/atf_blogskin_v2/style.css and http://www.abovethefold.co.uk/blog/wp-content/themes/atf_blogskin_v2/ie_overrides.css.

Any help, tips or errors spotted would be gratefully received. I am now officially at the tearing my hair out stage!
» Homer Simpson CSS
Nothing can describe this unless you see it! It's not an image file! It's Homer Simpson totally drawn in CSS!

http://www.romancortes.com/blog/homer-css/
» Links-CSS-Dreamweaver!
http://www.freewebs.com/alwaysholdingon/

This is the current state of my site. And thanks for all of your help but so far I have no idea how to make the links on the sidebar to work, the links below the banner are a piece of cake but those in the sidebar I have no idea where to direct them too, and I thought about copying the page and change only the main part to -affiliates, links, videos and stuff but it didn't work i opened the html file and also the css file but when I tried to upload it was not working.

Initially I wanted to make the part where WElcome and UPdates be like the mainframe and direct all the links there but I have no idea how to do that and where does the code for that goes. I got a dreamweaver tutorial but I couldn't find anything related to the links.

And I got one of the stylesheets, that come in the program. I deleted some tables. The part where the links are is PageNav and the center is Col2.

I'm really sorry to bother you. And if anyone can help me that'd be really great. Thanks in advance.


ETA: So this is the current state of the site.

www.freewebs.com/alwaysholdingon

- The easiest way to have your different pages read one style sheet is to use the link element. For the link to work, the style sheet must be a separate file. You add the following line in the head of each of your HTML documents.



This is more like what I wanted to achieve and once I read that it wasn't difficult or anything to do I added the html files with the stylesheet from the index and only changed the name of the page and the content without changing the links I wanted to keep.

source: http://www.powerverbs.com/powerverbs/css/csslinks.html
» CSS Links
Hi It's me again sorry :D

So I kept on trying with CSS and I understood a bitmore thanks to all of your comments and links.

What I have done so far is this :

http://www.freewebs.com/alwaysholdingon/

I really like the way it looks I need to work on it a bit but now the one I can't do it's to make the links on sidebar to open where - Welcome and updates are-

Thanks and sorry to bother you again.
Top of Page Powered by LiveJournal.com