html - Stop 2 floating DIVS from collapsing while inside another -
- Get link
- X
- Other Apps
It can be really simple but I can not wrap my head around it.
css
#nav_bar {max-width: 1000px; Height: 41px; Margin: 0 auto; Background color: yellow; } # Left {float: left; Minimum-width: 200px; Height: 41px; Background color: red; } #right (float: right; minimum-width: 500px; height: 41px; background color: black;}
HTML
& lt I will explain it in colors, in fact I want the red box to float the left and right box so that the float can be floated inside the yellow box. Even when I shorten the browser window everything collapses and the black box goes down to red. (Outside the yellow color). I know it looks very basic, but I should not fall even this, I will be happy if it does not move at all and the browser scrolls horizontally evenly As it normally becomes too small for window content
You must have #nav_bar
enough minimum width to accommodate two small elements:
#nav_bar {... min-width: 700px; }
-
Get link
-
Facebook
-
X
-
Pinterest
-
Email
-
Other Apps
Popular posts from this blog
apache - 504 Gateway Time-out The server didn't respond in time. How to
fix it? -
Using a form submission on an embedded iframe , the customer downloads a compressed log file Requested. The request was sent to the server, which is the compressed log files, perform some database operations and returns a compressed file. After just 2 minutes, 504 gateway time-out server did not respond timely message on browser net panel How to fix this error? The log files were taking a long time to compress, and timeout was set to 2min The error was fixed by extending the file file: # # timeout: The number of seconds before getting the time out. # # # Timeout 120 timeout 600
c# - .net WebSocket: CloseOutputAsync vs CloseAsync -
We have a working ASP.NET Web API REST service, which is one of the methods of our controller, HTTPTTEX. .) Socket handler code looks something like this ... Public async task socket handler (AspNetWebSocketContext context) {_webSocket = context.WebSocket; ... while (! Cts.IsCancellationRequested) {WebSocketReceiveResult Results = _webSocket.ReceiveAsync (Input Segment, cts.Token) .Result; WebSocketsStateCollusocketState = _webSocket.State; If (result.MessageType == WebSocketMessageType.Close || currentSocketState == WebSocketState.CloseReceived) {// What should I use. CloseAysnc () or. CloseOutputAsync ()? _webSocket.CloseOutputAsync (WebSocketCloseStatus.NormalClosure, "Client Requested", cts.Token). Wait (); } If (currentSocketState == WebSocketState.Open) {...}}} .What is the difference between .CooseAsync () and CloseOutputAysnc ()? I tried both of them and they both seemed to work fine but some difference should be the same they both describe very similar to...
c++ - How to properly scale qgroupbox title with stylesheet for high
resolution display? -
I am trying to apply a stylesheet for QGroupBox (QT4.8), which works on the normal screen ( 96 dpi) high resolution screen (Yoga 2 Pro, 3200x1800, 275 dpi, windows 8.1). The following style looks good on the 275 dpi screen, but the top margins on a regular 96 dpi screen are far too big. QGroupBox {border: 1px solid red; Range radius: 7px; Margin-top: 12x; } QGroupBox :: Title {subcontrol-origin: margin; Subcontrol-position: left above; Padding-left: 10px; Padding-right: 10px; } Changing the top-margin has an effect, but I did not get a proper setting which works on both screens. If I shorten the value, the content of the group box overlaps with the title on 275 dpi screen. I was also playing with units "East", "PX", "MX", "PT". Reading the document I would have guessed, "2 X" was the correct solution, which should be scaled with different screen resolutions. Without the stylesheet, the groupbox works well on both screens. ...
Comments
Post a Comment