Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Web Design Lobby Forum for general web design issues not specific to scripting or graphics.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 06-13-2004, 05:20 AM   #1 (permalink)
Inactive
 
Join Date: 06-06-04
Location: Munich
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

Dilandau is liked by many
CSS block element without linefeed at its top and bottom?

I want a special column of sequential divs. But normally a div has a linebreak at its end. How can i let the next div start in the line directly after the last character from the previous div (with no linebreak), so that the over all block layout still remains (for justifiy text). In other terms, the first and the last line of a block should be rendered somewhat inline, but the block as a whole should behave as a block and allow to justify the text within it and to use left and right margin.



The problem is, that between two blocks an image should be put as float in alignment to the window border, while overriding the margins of the blocks. for example, if a division between two block would be there -->IMG<--- and the next block starts after the IMG, this should mean, that the image floats to the right border of teh browser window, while the blocks marings are wide like now. But this should be achieved without a linebreak in the block at the place of the image.
Dilandau is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-13-2004, 09:38 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
To get your divs to start on the same line as the one above them add this to div in your stylesheet:

[code:1:5470250e5d]display: inline;[/code:1:5470250e5d]


I'm not sure what you are asking about the image thing.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-13-2004, 10:40 AM   #3 (permalink)
Inactive
 
Join Date: 06-06-04
Location: Munich
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

Dilandau is liked by many
How can the justification and the margins to the window be kept for the divs at the same time?
Dilandau is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-13-2004, 10:49 AM   #4 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Set the width of the left and right divs. Then the stuff in the middle will take up the space that is left.

It might help if you could show your code and the page if it is up anywhere.
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-13-2004, 07:27 PM   #5 (permalink)
Inactive
 
Join Date: 06-06-04
Location: Munich
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

Dilandau is liked by many
The page is there: http://otaku.onlinehome.de/gematria.html

Any image, that is aligned to a window border, now can only be seen at a line break of the middle column. These images float into the middle column text if the window is made less wide.

Left and right are no columns at all now. If divs are inserted there, how can the image from the middle column be aligned to the window border AND float into the middle column if the window is made less wide? How can the left and right column have the height of the middle column?
Dilandau is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-13-2004, 11:08 PM   #6 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
They used float.

To do that, don't make it inline. Just add this instead.

[code:1:9603f9c95b]
float: right;
clear: left;
[/code:1:9603f9c95b]

Or the vise versa if you want it to float on the left side.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-14-2004, 04:44 AM   #7 (permalink)
Inactive
 
Join Date: 06-06-04
Location: Munich
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

Dilandau is liked by many
Your answer is not clear. What question does it relate to Please use some more words to describe what you mean and what would happen in relation to which of my questions.
Dilandau is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2004, 08:31 AM   #8 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
My answer applies to the post which comes before it.

Quote:
Left and right are no columns at all now. If divs are inserted there, how can the image from the middle column be aligned to the window border AND float into the middle column if the window is made less wide? How can the left and right column have the height of the middle column?
The float property in CSS makes an element sorta float to a side and let everything wrap around it on the side which the clear attribute is assigned.

I'm not sure if I can get any more clear, but I can try if you don't get it now.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-15-2004, 09:27 AM   #9 (permalink)
Inactive
 
Join Date: 06-06-04
Location: Munich
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

Dilandau is liked by many
To be clear you have to understand the entire thread and see that tehre are multiple questions in it. Currently your post does not answer any of these question but only explains what float means. Realte close to the question and its context in which it has been written. Currently you seem to be out of the context.
Dilandau is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blogger Ad Element issue visionedger Blogging Forum 1 03-04-2008 06:54 PM
Need to add white bottom border to each block in this css menu. basslion Coding Forum 6 12-27-2007 06:55 PM
Style within an XML element StupidScript Coding Forum 5 04-03-2007 05:22 PM
css help in element positioning. funguru Coding Forum 5 11-22-2006 08:37 PM
title element of a link seminfo SEO Forum 13 04-02-2006 01:08 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 09:00 AM.
© Copyright 2008 V7 Inc