Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9300907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:53:39+00:00 2026-06-18T22:53:39+00:00

Is it possible to implement vertical layout with CSS only , and not with

  • 0

Is it possible to implement vertical layout with CSS only, and not with HTML elements?

I have a list of divs inside one div. By default the next element is right to the last, when there’s no place on right, it is placed below.

I’d like to achieve the same with CSS style settings. Is it possible?

By CSS-only I mean, we have div and its children, and do not add anything special such as:

  • line-breaking elements ( <br/>, <div style="clear:both;"/> )
  • UL tags
  • tables (yes, still used, f.g. JSF almost exclusively based on them)

So:

<div id="menu">
  <a href="something1">Page 1</a>
  <a href="something2">Page 2</a>
  <a href="something3">Page 3</a>
</div>

And CSS implementing vertical layout:

#menu { ??? }
#menu a { ??? }

Is there a ??? that I could use to achieve what I want?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T22:53:40+00:00Added an answer on June 18, 2026 at 10:53 pm

    Display anchor tags as block elements.

    #menu a {
    display: block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to implement Delegate methods for FileSystemWatcher? I have a delegate method
Is it possible to implement associative arrays as Selectors and Values. I have an
Is it possible to implement the 'not-found=ignore' behaviour of NHibernate on a key mapping
How do you mimic table behavior with CSS and Divs? Is it possible to
Possible Duplicate: Button next and prev not working I have 5 buttons in my
I use ViewPager with PagerAdapter. Is it possible to implement vertical swipe in Android,
Possible Duplicate: Implement linked list in php We can make link list in Java,
I have some code that I wrote to implement a vertical swipe on a
Is it possible to implement a non-blocking client socket? I have tried using sockfd
I am trying to implement a layout, which contains a list of ViewPagers. Each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.